[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 43/44: gitlab #3 Manage Table issue with the
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 43/44: gitlab #3 Manage Table issue with the type SELECT, cannot reproduce bug Back to old version to fix issue with the type "SELECT" from the menu Syndicat.tools->section |
Date: |
Wed, 26 Dec 2018 04:29:57 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 3f53de417dd89e9a90a386404f93f8648155e046
Author: Dany De Bontridder <address@hidden>
Date: Tue Dec 25 23:19:36 2018 +0100
gitlab #3 Manage Table issue with the type SELECT, cannot reproduce bug
Back to old version to fix issue with the type "SELECT" from
the menu Syndicat.tools->section
---
include/lib/manage_table_sql.class.php | 33 +++++++++++++++------------------
1 file changed, 15 insertions(+), 18 deletions(-)
diff --git a/include/lib/manage_table_sql.class.php
b/include/lib/manage_table_sql.class.php
index 87427d3..51aef22 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -810,27 +810,24 @@ function check()
* we translate the code from the database into a
hardcoded label
*/
$idx=$p_row[$v];
- if ( ! isset($this->a_select[$v][$idx])) {
- /*
- * Check if index exists
- */
- $array_to_search=$this->a_select[$v];
- $value=$p_row[$v];
- $nb_search=count($array_to_search);
- $found=FALSE;
- for ( $e=0;$e< $nb_search;$e++) {
- if (isset ($array_to_search[$e]['value']) &&
$array_to_search[$e]['value']==$value ) {
- $found=TRUE;
- echo td($array_to_search[$e]['label']);
- }
+ /*
+ * Check if index exists
+ */
+ $array_to_search=$this->a_select[$v];
+ $value=$p_row[$v];
+
+
$nb_search=(is_array($array_to_search))?count($array_to_search):0;
+ $found=FALSE;
+ for ( $e=0;$e< $nb_search;$e++) {
+ if (isset ($array_to_search[$e]['value']) &&
$array_to_search[$e]['value']==$value ) {
+ $found=TRUE;
+ echo td($array_to_search[$e]['label']);
}
+ }
- if ( ! $found) {
- echo td("--");
+ if ( ! $found) {
+ echo td("--");
- }
- } else {
- echo td($this->a_select[$v][$idx]["label"]);
}
}else {
- [Noalyss-commit] [noalyss] 36/44: Pre_Operation : add attribut, (continued)
- [Noalyss-commit] [noalyss] 36/44: Pre_Operation : add attribut, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 08/44: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 44/44: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 42/44: Doc + typo, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 39/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit look also into NOALYSS_INCLUDE, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 11/44: Improve cosmetic, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 23/44: translate, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 38/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit look also into NOALYSS_INCLUDE, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 41/44: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 33/44: Database upgrade 131, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 43/44: gitlab #3 Manage Table issue with the type SELECT, cannot reproduce bug Back to old version to fix issue with the type "SELECT" from the menu Syndicat.tools->section,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 12/44: Translate, Dany De Bontridder, 2018/12/26