From 76ec051e848fb026d4784f595f54895f6425cd28 Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Thu, 24 Oct 2019 14:00:47 +0100
Subject: [PATCH] FIX #12070 TIME 0:10 remove listinstance_type in php

---
 .../entities/class/class_manage_listdiff_Abstract.php  | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules/entities/class/class_manage_listdiff_Abstract.php b/modules/entities/class/class_manage_listdiff_Abstract.php
index ebf299d4358..123a1df5c53 100755
--- a/modules/entities/class/class_manage_listdiff_Abstract.php
+++ b/modules/entities/class/class_manage_listdiff_Abstract.php
@@ -505,10 +505,9 @@ abstract class diffusion_list_Abstract extends functions
                 } else {
                     $stmt = $db->query(
                         'insert into '.ENT_LISTINSTANCE
-                            .' (res_id, listinstance_type, sequence, item_id, item_type, item_mode, added_by_user, viewed, difflist_type, process_comment, signatory, requested_signature) '
+                            .' (res_id, sequence, item_id, item_type, item_mode, added_by_user, viewed, difflist_type, process_comment, signatory, requested_signature) '
                         .'values ('
                             .'?, ?, '
-                            ."'DOC', ?, "
                             .'?, '
                             ."'user_id' , "
                             .'?, '
@@ -516,7 +515,6 @@ abstract class diffusion_list_Abstract extends functions
                             .'?, ?, '
                             .'?, '
                             .'?, '
-                            .'?, '
                             .'?'
                         .' )',
                         array($resId, $i, $userId, $item_mode, $creatorUser, $viewed, $difflistType, $processComment, $signatory, $requested_signature)
@@ -562,16 +560,14 @@ abstract class diffusion_list_Abstract extends functions
 
                 $stmt = $db->query(
                     'INSERT INTO '.ENT_LISTINSTANCE
-                        .' (res_id, listinstance_type, sequence, item_id, item_type, item_mode, added_by_user, viewed, difflist_type) '
+                        .' (res_id, sequence, item_id, item_type, item_mode, added_by_user, viewed, difflist_type) '
                     .'VALUES ('
                         .'?, ?, '
-                        ."'DOC', ?, "
                         .'?, '
                         ."'entity_id' , "
                         .'?, '
                         .'?, '
-                        .'?,?, '
-                        .'?'
+                        .'?, ?'
                     .' )',
                     array($resId, $j, $entityId, $item_mode, $creatorUser, $viewed, $difflistType)
                 );
-- 
GitLab