[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 77/238: Manage_Table : issue with the type se
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 77/238: Manage_Table : issue with the type select |
Date: |
Sat, 26 Oct 2019 04:40:36 -0400 (EDT) |
sparkyx pushed a commit to annotated tag rel7110
in repository noalyss.
commit d7ff4aee2454fec8af75bde480d2d2f60f0d2117
Author: Dany De Bontridder <address@hidden>
Date: Sat Sep 22 17:19:35 2018 +0200
Manage_Table : issue with the type select
---
include/lib/manage_table_sql.class.php | 45 +++++++++++++++++-----------------
1 file changed, 22 insertions(+), 23 deletions(-)
diff --git a/include/lib/manage_table_sql.class.php
b/include/lib/manage_table_sql.class.php
index 87427d3..b39e05a 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -804,36 +804,35 @@ function check()
}
else
{
- if ( $this->get_col_type($v)=="select")
+ if ($this->get_col_type($v)=="select")
{
/**
- * we translate the code from the database into a
hardcoded label
+ * From database
*/
$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=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']);
}
+ }
- if ( ! $found) {
- echo td("--");
-
- }
- } else {
- echo td($this->a_select[$v][$idx]["label"]);
+ if (!$found)
+ {
+ echo td("--");
}
-
- }else {
+ }
+ else
+ {
echo td($p_row[$v]);
}
}
- [Noalyss-commit] [noalyss] 73/238: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, (continued)
- [Noalyss-commit] [noalyss] 73/238: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 71/238: Check for date and number : isdate and isnumeric, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 79/238: Bug : in Purchase and Sale , the last rows disappear when we change the ledger, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 49/238: Update documentation, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 54/238: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 56/238: Fix todo_list : if list empty , gets an error in php 7.2, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 61/238: Task #1619 : CFGLED change label for "Donner ici la fiche du compte en banque", Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 69/238: Create lib for Tabs, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 72/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 70/238: Merge tag 'rel7008' into r700-currency, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 77/238: Manage_Table : issue with the type select,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 83/238: adapt to 7.2 ,init, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 78/238: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 81/238: adapt to 7.2 , error with sizeof, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 87/238: translate, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 89/238: adapt to 7.2 ,array, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 80/238: Improve debug info, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 82/238: adapt to 7.2 , error with count, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 84/238: Style.css Ajout de nowrap, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 90/238: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2019/10/26
- [Noalyss-commit] [noalyss] 92/238: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/10/26