Skip to content

Commit

Permalink
Fix contract line extrafields save on add line
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-john committed Feb 9, 2018
1 parent 39cd63e commit 2817ace
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion htdocs/contrat/class/contrat.class.php
Expand Up @@ -2987,7 +2987,16 @@ public function insert($notrigger = 0)
{
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX.'contratdet');

// FIXME Missing insert of extrafields
// Insert of extrafields
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)
{
$this->db->rollback();
return -1;
}
}

if (!$notrigger)
{
Expand Down

0 comments on commit 2817ace

Please sign in to comment.