Bug : fiche account not created automatically when empty , improve test
This commit is contained in:
parent
9d3e6db5eb
commit
f1ea56101d
5 changed files with 300 additions and 16 deletions
|
|
@ -139,7 +139,7 @@ class Fiche
|
|||
* \param $p_qcode quick_code (ad_id=23)
|
||||
* \param $p_all retrieve all the attribut of the card, possible value
|
||||
* are true or false. false retrieves only the f_id. By default true
|
||||
* \return 0 success 1 error not found
|
||||
* \returns 0 success , card found / 1 error card not found
|
||||
*/
|
||||
function get_by_qcode($p_qcode=null,$p_all=true)
|
||||
{
|
||||
|
|
@ -477,8 +477,11 @@ class Fiche
|
|||
$this->setAttribut($property->ad_id, $p_array[$key]);
|
||||
}
|
||||
}
|
||||
// For accounting
|
||||
|
||||
Card_Property::update($this);
|
||||
$this->quick_code=$this->strAttribut(ATTR_DEF_QUICKCODE);
|
||||
// reread from database
|
||||
$this->getAttribut();
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue