Error management
This commit is contained in:
parent
ca93be5eed
commit
e549e6cde1
@ -206,7 +206,7 @@ if ($id > 0 && empty($object->id))
|
||||
{
|
||||
// Load data of third party
|
||||
$res=$object->fetch($id);
|
||||
if ($object->id <= 0) dol_print_error($db,$object->error);
|
||||
if ($object->id <= 0) dol_print_error($db,$object->error,$object->errors);
|
||||
}
|
||||
|
||||
$title=$langs->trans("CustomerCard");
|
||||
@ -608,7 +608,7 @@ if ($id > 0)
|
||||
if(empty($reshook)){
|
||||
$boxstat.= $hookmanager->resPrint;
|
||||
}
|
||||
|
||||
|
||||
$boxstat.='</td></tr>';
|
||||
$boxstat.='</table>';
|
||||
$boxstat.='</div>';
|
||||
|
||||
@ -1278,7 +1278,7 @@ class Contrat extends CommonObject
|
||||
//// End call triggers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && is_array($this->array_options) && count($this->array_options)>0) // For avoid conflicts if trigger used
|
||||
{
|
||||
$result=$this->insertExtraFields();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user