From f438097ecb6e15a007414790543613ebde145244 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 20 Jul 2017 14:59:24 +0200 Subject: [PATCH] Fix extrafield save on update --- htdocs/contrat/class/contrat.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index e08e10a0966df..35a9e98b31f34 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -1278,6 +1278,15 @@ function update($user=null, $notrigger=0) //// End call triggers } } + + if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && is_array($this->array_options) && count($this->array_options)>0) // For avoid conflicts if trigger used + { + $result=$this->insertExtraFields(); + if ($result < 0) + { + $error++; + } + } // Commit or rollback if ($error)