[openmairie-framework-Commits] r4946 - in openmairie_exemple/branches/om5_rad: . obj

0 views
Skip to first unread message

fray...@users.adullact.net

unread,
Apr 28, 2024, 12:48:45 PMApr 28
to openmairie...@googlegroups.com
Author: fraynaud
Date: 2024-04-28 18:48:42 +0200 (Sun, 28 Apr 2024)
New Revision: 4946

Modified:
openmairie_exemple/branches/om5_rad/HISTORY.txt
openmairie_exemple/branches/om5_rad/obj/om_forms.class.php
Log:
bug composition



Modified: openmairie_exemple/branches/om5_rad/HISTORY.txt
===================================================================
--- openmairie_exemple/branches/om5_rad/HISTORY.txt 2024-04-27 07:59:27 UTC (rev 4945)
+++ openmairie_exemple/branches/om5_rad/HISTORY.txt 2024-04-28 16:48:42 UTC (rev 4946)
@@ -134,7 +134,7 @@
* Evolution : mise à niveau install et om_setup_config.php
* bug : composition om_forms appel dans forms à l'action 5 d om_champs (objet invalide) 26/04/24
* bug - manque le droit om_vues 26/04/2014
-* bug : composition om_forms : correction view_composer_widget_ctl : update 27/04/2024
+* bug : composition om_forms : correction view_composer_widget_ctl : update 27/04/2024 et 28/04/2024


4.10.0 (29/11/2022

Modified: openmairie_exemple/branches/om5_rad/obj/om_forms.class.php
===================================================================
--- openmairie_exemple/branches/om5_rad/obj/om_forms.class.php 2024-04-27 07:59:27 UTC (rev 4945)
+++ openmairie_exemple/branches/om5_rad/obj/om_forms.class.php 2024-04-28 16:48:42 UTC (rev 4946)
@@ -931,7 +931,7 @@
//echo "->".$elem['column_name']." ".$elem['position']." ";
//echo $elem['bloc']."*<br>";
if($elem['type'] == 'hidden' or $elem['type'] == 'sql' ){
- echo $elem['column_name']." [non visible] -> ".$elem['type'];
+ echo '<br>'.$elem['column_name']." [".$elem['type']." ]";
}else{
// Affichage des colonnes
$this->display_dashboard_widget(
@@ -1049,8 +1049,8 @@
// max par colonne pour position des champs hidden
$nb[$bloc]=$position;
}
- $this->f->addToLog(__METHOD__."(): mode update(".print_r($c, true).");", DEBUG_MODE);
- $this->f->addToLog(__METHOD__."(): mode update(".$table.");", DEBUG_MODE);
+ //$this->f->addToLog(__METHOD__."(): mode update(".print_r($c, true).");", DEBUG_MODE);
+ //$this->f->addToLog(__METHOD__."(): mode update(".$table.");", DEBUG_MODE);
$sql = " select om_forms.column_name, om_forms.table_name, data_type, ";
$sql .= " parametres->>'bloc' as bloc, parametres->>'position' as position, ";
$sql .= " parametres->>'type' as type ";
@@ -1062,12 +1062,12 @@
$this->f->isDatabaseError($res);
while ($row =& $res->fetchRow(DB_FETCHMODE_ASSOC)) {
$temp1=explode(".", $row['column_name']);
- //$this->f->addToLog(__METHOD__."(): mode update type (".$temp->type.");", DEBUG_MODE);
- if($row['type']=='hidden'){ // cas des champs cachés non affichés
+ $this->f->addToLog(__METHOD__."(): mode update type (".$temp->type.");", DEBUG_MODE);
+ if($row['type']=='hidden' or $row['type']=='sql'){ // cas des champs cachés non affichés sql et hidden
$nb['C1']++;
- $row['bloc']= 'C1';
- $row['position']=$nb['C1'];
- $this->f->addToLog(__METHOD__."(): mode update type(".$temp->type.");", DEBUG_MODE);
+ $bloc= 'C1';
+ $position=$nb['C1'];
+ $this->f->addToLog(__METHOD__."(): mode update * type(".$row['type']." | ".$row['position']." [ ".$row['bloc']."*);", DEBUG_MODE);
}else{
$bloc=$c[$row['column_name']]["bloc"];
$position=$c[$row['column_name']]["position"];
@@ -1090,8 +1090,7 @@
}
// DELETE
// module=form&obj=om_forms&idx=0&action=5&mode=delete&widget=widget_livre.auteur
- if ($mode == "delete") {
-
+ if ($mode == "delete") {
// widget est le column_name concerné
$widget = str_replace("widget_", "", $widget);
// en mode delete le champs est mis en hidden

Reply all
Reply to author
Forward
0 new messages