From c77e121553df7541d4faebc4e397b07d29a63970 Mon Sep 17 00:00:00 2001 From: abb Date: Sat, 16 Apr 2016 17:47:49 +0100 Subject: [PATCH] fix:use of function updateExtrafield instead of insertExtrafields in interventions --- htdocs/fichinter/card.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index 74f50f26a5b..61ddfad76e4 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -882,8 +882,7 @@ if (empty($reshook)) $parameters=array('id'=>$object->id); $reshook=$hookmanager->executeHooks('insertExtraFields',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks if (empty($reshook)) - { - $result=$object->insertExtraFields(); + { $result=$object->updateExtraField($_POST["attribute"]); if ($result < 0) { $error++;