Task #1469 Code Cleaning: remove Anc_Account
Use a CSS with 2 fonts , one for the title and clickable item, and a normal one. Correct Anc_Account_Table::check duplicate for update and insert
This commit is contained in:
parent
0e18bd15f2
commit
4b0938b1f3
8 changed files with 17 additions and 559 deletions
|
|
@ -74,8 +74,8 @@ class Anc_Account_Table extends Manage_Table_SQL
|
|||
$table->po_name=str_replace(">", '', $table->po_name);
|
||||
|
||||
// po_name must be uniq in the Analytic Plan
|
||||
if ( $cn->get_value("select count(*) from poste_analytique where pa_id=$1 and po_name=$2",
|
||||
array($table->pa_id,$table->po_name)) > 0 && $table->po_id==-1)
|
||||
if ( $cn->get_value("select count(*) from poste_analytique where pa_id=$1 and po_name=$2 and po_id != $3",
|
||||
array($table->pa_id,$table->po_name,$table->po_id)) > 0)
|
||||
{
|
||||
$is_error++;
|
||||
$this->set_error("po_name", _("Le nom doit être unique dans un plan analytique"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue