fray...@users.adullact.net
unread,Apr 27, 2024, 3:59:31 AMApr 27Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairie...@googlegroups.com
Author: fraynaud
Date: 2024-04-27 09:59:27 +0200 (Sat, 27 Apr 2024)
New Revision: 4945
Modified:
openmairie_exemple/branches/om5_rad/HISTORY.txt
openmairie_exemple/branches/om5_rad/TODO.txt
openmairie_exemple/branches/om5_rad/obj/om_forms.class.php
Log:
debug composition om_forms
prise en compte du type sql qui ne peut pas etre cache
Modified: openmairie_exemple/branches/om5_rad/HISTORY.txt
===================================================================
--- openmairie_exemple/branches/om5_rad/HISTORY.txt 2024-04-26 21:37:40 UTC (rev 4944)
+++ openmairie_exemple/branches/om5_rad/HISTORY.txt 2024-04-27 07:59:27 UTC (rev 4945)
@@ -134,8 +134,8 @@
* 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
-
4.10.0 (29/11/2022
-------------------
Modified: openmairie_exemple/branches/om5_rad/TODO.txt
===================================================================
--- openmairie_exemple/branches/om5_rad/TODO.txt 2024-04-26 21:37:40 UTC (rev 4944)
+++ openmairie_exemple/branches/om5_rad/TODO.txt 2024-04-27 07:59:27 UTC (rev 4945)
@@ -97,14 +97,14 @@
===
- composition om_forms bug appel méthode om_champs -> debugué action 5 du coup
+- bug : om_tables : si existe vue -> la suppression créé une erreur : a voir
- bug : om_tables : si existe vue -> la suppression créé une erreur : a voir
+vu avec thierry
+===============
+- mettre les tests pour indusrialisation
+- possible hébergement / intégrateur - éditeur libre
-
-
-
-
Actions
=======
- enlever supprimer, modifier
Modified: openmairie_exemple/branches/om5_rad/obj/om_forms.class.php
===================================================================
--- openmairie_exemple/branches/om5_rad/obj/om_forms.class.php 2024-04-26 21:37:40 UTC (rev 4944)
+++ openmairie_exemple/branches/om5_rad/obj/om_forms.class.php 2024-04-27 07:59:27 UTC (rev 4945)
@@ -930,8 +930,8 @@
if($elem["bloc"]=="C".intval($i)){
//echo "->".$elem['column_name']." ".$elem['position']." ";
//echo $elem['bloc']."*<br>";
- if($elem['type'] == 'hidden'){
- echo $elem['column_name']." [non visible]";
+ if($elem['type'] == 'hidden' or $elem['type'] == 'sql' ){
+ echo $elem['column_name']." [non visible] -> ".$elem['type'];
}else{
// Affichage des colonnes
$this->display_dashboard_widget(
@@ -1051,14 +1051,14 @@
}
$this->f->addToLog(__METHOD__."(): mode update(".print_r($c, true).");", DEBUG_MODE);
$this->f->addToLog(__METHOD__."(): mode update(".$table.");", DEBUG_MODE);
- $sql = " select om_champs.column_name, om_champs.table_name, data_type, ";
- $sql .= " parametres->>'bloc' as bloc, parametres->>'position', ";
- $sql .= " parametres->>'type' as bloc, parametres->>'position' ";
- $sql .= " FROM ".DB_PREFIXE."om_champs left join ".DB_PREFIXE."om_forms ";
+ $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 ";
+ $sql .= " FROM ".DB_PREFIXE."om_forms left join ".DB_PREFIXE."om_champs ";
$sql .= " on om_champs.column_name=om_forms.column_name ";
- $sql .= " where om_champs.table_name = '".$table."' ";
+ $sql .= " where om_forms.table_name = '".$table."' ";
$res = $this->f->db->query($sql);
- $this->f->addToLog("app/om_champs_class.php: db->query(\"".$sql." ".$widget_id."\");", DEBUG_MODE);
+ $this->f->addToLog("app/om_champs_class.php: db->query(\"".$sql." / ".$widget_id."\");", DEBUG_MODE);
$this->f->isDatabaseError($res);
while ($row =& $res->fetchRow(DB_FETCHMODE_ASSOC)) {
$temp1=explode(".", $row['column_name']);