From 2bf44d276b98c6bb7be0f0e27a61e9dbf3c88ab7 Mon Sep 17 00:00:00 2001 From: StephaneLesage Date: Wed, 25 Nov 2020 05:30:18 +0100 Subject: [PATCH] simple & dirty refresh of prospection status icon/label by re-fetching after update --- htdocs/comm/card.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index 624526a9a5d..47c8431072d 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -170,6 +170,7 @@ if (empty($reshook)) $object->stcomm_id = dol_getIdFromCode($db, GETPOST('stcomm', 'alpha'), 'c_stcomm'); $result = $object->update($object->id, $user); if ($result < 0) setEventMessages($object->error, $object->errors, 'errors'); + else $result = $object->fetch($object->id); } // update outstandng limit