[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 77/218: Manage_Table : issue with the type se
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 77/218: Manage_Table : issue with the type select |
Date: |
Thu, 12 Sep 2019 15:58:44 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
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] 65/218: Merge branch 'master' into r700-currency, (continued)
- [Noalyss-commit] [noalyss] 65/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 70/218: Merge tag 'rel7008' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 71/218: Check for date and number : isdate and isnumeric, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 87/218: translate, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 82/218: adapt to 7.2 , error with count, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 96/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 73/218: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 74/218: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 76/218: Bug : cannot set group, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 69/218: Create lib for Tabs, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 77/218: Manage_Table : issue with the type select,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 80/218: Improve debug info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 88/218: FIN : cosmetic : bug due the currency feature in the input there are 2 supplementary rows for total in EUR and CURRENCY. Those rows don't exist for FIN, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 85/218: Currency : financial ledger can be set to a specific currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 102/218: Version DB 131, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 101/218: Currency : SQL quant_fin is adapted, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 103/218: reverse for quant_fin, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 100/218: Currency : financial use the rate depending of the operation date, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 94/218: acc_ledger_fin : cosmetic : input, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 99/218: Modify quant_fin , we add a column j_id to have a fk to jrnx and operation_currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 108/218: acc_ledger_fin . translation, Dany De Bontridder, 2019/09/12