From 3f21121b94be9ebfa0cdf519880c2b7cad3f79fc Mon Sep 17 00:00:00 2001 From: Jean-Marie Simonet Date: Sun, 17 Jan 2016 12:45:30 +0100 Subject: [PATCH] multilanguage: Save as Copy should not transfer the associations to the new item --- libraries/legacy/controller/form.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/legacy/controller/form.php b/libraries/legacy/controller/form.php index 6b7181af5a4c6..3b684b3aedfcf 100644 --- a/libraries/legacy/controller/form.php +++ b/libraries/legacy/controller/form.php @@ -661,6 +661,12 @@ public function save($key = null, $urlVar = null) // Reset the ID and then treat the request as for Apply. $data[$key] = 0; + + // Reset multilingual associations if necessary + if (isset($data['associations']) && array_sum($data['associations']) != 0) + { + $data['associations'] = ''; + } $task = 'apply'; }