FIX bug due changes Data_SQL

This commit is contained in:
sparkyx 2025-05-18 15:31:02 +02:00
parent 8befe04534
commit 70bae8b1b7
17 changed files with 116 additions and 39 deletions

View file

@ -49,7 +49,7 @@ class Fiche
var $tot_deb;
var $ledger_name; ///!< this variable is a mistake, it shouldn't exist, need code rewrite
var $ledger_description; ///!< this variable is a mistake, it shouldn't exist, need code rewrite
function __construct($p_cn,$p_id=0)
{
$this->cn=$p_cn;
@ -1461,10 +1461,10 @@ class Fiche
$sql='select fd_id from fiche where f_id=$1';
$R=$this->cn->get_value($sql, array($this->id));
if ( $R == "" )
$this->fd_id=0;
$this->fiche_def=0;
else
$this->fd_id=$R;
return $this->fd_id;
$this->fiche_def=$R;
return $this->fiche_def;
}
/*!
***************************************************