Skip to content

Commit

Permalink
Merge pull request #7181 from atm-john/FIX_extrafield_update_into_con…
Browse files Browse the repository at this point in the history
…tract

Fix extrafield doesnt save on update
  • Loading branch information
eldy committed Jul 21, 2017
2 parents 5318e51 + f438097 commit 83341cc
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 83341cc

Please sign in to comment.