From d69fae72c783238abccaa7d7f300c8c5c3f0732e Mon Sep 17 00:00:00 2001 From: Marc de Lima Lucio Date: Thu, 7 Jun 2018 15:17:22 +0200 Subject: [PATCH] FIX: intervention: extrafield regression in commit b5f37301a5a10933b34390766ef003f9a5473ed3 --- htdocs/fichinter/class/fichinter.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index 73e71b46398..a393f9cb2bc 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -1395,11 +1395,11 @@ class FichinterLigne extends CommonObjectLine $resql=$this->db->query($sql); if ($resql) { - $this->rowid=$this->db->last_insert_id(MAIN_DB_PREFIX.'fichinterdet'); + $this->id=$this->db->last_insert_id(MAIN_DB_PREFIX.'fichinterdet'); + $this->rowid=$this->id; if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used { - $this->id=$this->id; $result=$this->insertExtraFields(); if ($result < 0) { @@ -1470,7 +1470,6 @@ class FichinterLigne extends CommonObjectLine if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used { - $this->id=$this->id; $result=$this->insertExtraFields(); if ($result < 0) {