Skip to content

Commit

Permalink
Fix extrafield save on update
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-john committed Jul 20, 2017
1 parent 74db61c commit f438097
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions htdocs/contrat/class/contrat.class.php
Expand Up @@ -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)
Expand Down

0 comments on commit f438097

Please sign in to comment.