From 5c82e37517e050901d63fe25318a1c01da1fe170 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Jun 2022 13:40:54 +0200 Subject: [PATCH] Debug v16 --- htdocs/core/lib/functions.lib.php | 1 + htdocs/fourn/card.php | 2 ++ htdocs/societe/card.php | 1 + 3 files changed, 4 insertions(+) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 48f0b3f452f..89995ab539b 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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) { diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php index 2d649589282..de75bccf099 100644 --- a/htdocs/fourn/card.php +++ b/htdocs/fourn/card.php @@ -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); } } diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 91c187aace8..8e347a6d487 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -954,6 +954,7 @@ if ($socid > 0 && empty($object->id)) { $result = $object->fetch($socid); if ($result <= 0) { dol_print_error('', $object->error); + exit(-1); } }