Debug v16
This commit is contained in:
parent
8ee30e067f
commit
5c82e37517
@ -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) {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -954,6 +954,7 @@ if ($socid > 0 && empty($object->id)) {
|
||||
$result = $object->fetch($socid);
|
||||
if ($result <= 0) {
|
||||
dol_print_error('', $object->error);
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user