From 36ccb8b08e69135568938a01fbd081fc84b400d7 Mon Sep 17 00:00:00 2001 From: John Botella Date: Tue, 7 Jan 2020 14:49:25 +0100 Subject: [PATCH] Fix folder rename behavior --- htdocs/variants/combinations.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index 6dc66a32a8e..e53305c2015 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -168,12 +168,15 @@ if ($_POST) { $bulkaction = $massaction; $error = 0; - $prodstatic = new Product($db); + $db->begin(); foreach ($toselect as $prodid) { + // need create new of Product to prevent rename dir behavior + $prodstatic = new Product($db); + if ($prodstatic->fetch($prodid) < 0) { continue; }