Error management

This commit is contained in:
Laurent Destailleur 2017-09-03 04:16:43 +02:00
parent ca93be5eed
commit e549e6cde1
2 changed files with 3 additions and 3 deletions

View File

@ -206,7 +206,7 @@ if ($id > 0 && empty($object->id))
{ {
// Load data of third party // Load data of third party
$res=$object->fetch($id); $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"); $title=$langs->trans("CustomerCard");
@ -608,7 +608,7 @@ if ($id > 0)
if(empty($reshook)){ if(empty($reshook)){
$boxstat.= $hookmanager->resPrint; $boxstat.= $hookmanager->resPrint;
} }
$boxstat.='</td></tr>'; $boxstat.='</td></tr>';
$boxstat.='</table>'; $boxstat.='</table>';
$boxstat.='</div>'; $boxstat.='</div>';

View File

@ -1278,7 +1278,7 @@ class Contrat extends CommonObject
//// End call triggers //// 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 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(); $result=$this->insertExtraFields();