From adf5b8ddd370d60d4960bb808ade63290db16c00 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 1 Nov 2017 20:10:39 +0100 Subject: [PATCH] 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 ee5f1cecd..62f652d34 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; }