Debug v16

This commit is contained in:
Laurent Destailleur 2022-06-20 13:40:54 +02:00
parent 8ee30e067f
commit 5c82e37517
3 changed files with 4 additions and 0 deletions

View File

@ -2249,6 +2249,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
}
}
// Show address and email
if (method_exists($object, 'getBannerAddress') && !in_array($object->element, array('product', 'bookmark', 'ecm_directories', 'ecm_files'))) {
$moreaddress = $object->getBannerAddress('refaddress', $object);
if ($moreaddress) {

View File

@ -147,6 +147,7 @@ if (empty($reshook)) {
if (!$error) {
$result = $object->insertExtraFields('COMPANY_MODIFY');
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');
$error++;
}
}
@ -170,6 +171,7 @@ if ($id > 0 && empty($object->id)) {
$res = $object->fetch($id);
if ($object->id <= 0) {
dol_print_error($db, $object->error);
exit(-1);
}
}

View File

@ -954,6 +954,7 @@ if ($socid > 0 && empty($object->id)) {
$result = $object->fetch($socid);
if ($result <= 0) {
dol_print_error('', $object->error);
exit(-1);
}
}