noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 130/219: ANC groupe : little bug in PLANANC,


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 130/219: ANC groupe : little bug in PLANANC, allow a group null
Date: Mon, 18 Dec 2017 13:22:50 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit adf5b8ddd370d60d4960bb808ade63290db16c00
Author: Dany De Bontridder <address@hidden>
Date:   Wed Nov 1 20:10:39 2017 +0100

    ANC groupe : little bug in PLANANC, allow a group null
---
 include/class/anc_account_table.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class/anc_account_table.class.php 
b/include/class/anc_account_table.class.php
index ee5f1ce..62f652d 100644
--- a/include/class/anc_account_table.class.php
+++ b/include/class/anc_account_table.class.php
@@ -51,7 +51,7 @@ class Anc_Account_Table extends Manage_Table_SQL
         $this->set_col_type("ga_id", "select");
         $this->set_object_name("anc_accounting");
         $this->set_col_sort(1);
-        $this->a_select["ga_id"]=$cn->make_array("select ga_id,ga_description 
+        $this->a_select["ga_id"]=$cn->make_array("select '-','-' union all 
select ga_id,ga_id||' '||ga_description 
             from groupe_analytique
             where
             pa_id=$1
@@ -86,7 +86,7 @@ class Anc_Account_Table extends Manage_Table_SQL
             $is_error++;
             $this->set_error("po_name", _("Le nom ne peut être vide"));
         }
-        $table->ga_id=($table->ga_id=="")?null:$table->ga_id;
+        $table->ga_id=($table->ga_id=="-")?null:$table->ga_id;
         if ($is_error==0)return TRUE;
         return FALSE;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]