From a63dff16071f84dec18d47a925da5f38a2faf3eb Mon Sep 17 00:00:00 2001
From: "kevin.dezaphi" <kevin.dezaphi@maarch.org>
Date: Mon, 15 Oct 2018 12:00:33 +0200
Subject: [PATCH] FIX #8652 replace value to match correct value in table

---
 src/app/entity/controllers/ListTemplateController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/entity/controllers/ListTemplateController.php b/src/app/entity/controllers/ListTemplateController.php
index f03bf17226e..c0ad197d72d 100644
--- a/src/app/entity/controllers/ListTemplateController.php
+++ b/src/app/entity/controllers/ListTemplateController.php
@@ -367,7 +367,7 @@ class ListTemplateController
         } else {
             ListTemplateModel::delete([
                 'where' => ['object_type = ?', 'item_mode not in (?)'],
-                'data'  => [$aArgs['typeId'], explode(' ', $roles)]
+                'data'  => [$aArgs['typeId'], explode(' ', str_replace('copy', 'cc', $roles))]
             ]);
         }
 
-- 
GitLab