Merge pull request #12810 from ATM-Consulting/10.0_Fix_folder_rename_behavior
Fix folder rename behavior
This commit is contained in:
commit
bc8dfd46c2
@ -168,12 +168,15 @@ if ($_POST) {
|
|||||||
$bulkaction = $massaction;
|
$bulkaction = $massaction;
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
$prodstatic = new Product($db);
|
|
||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
foreach ($toselect as $prodid) {
|
foreach ($toselect as $prodid) {
|
||||||
|
|
||||||
|
// need create new of Product to prevent rename dir behavior
|
||||||
|
$prodstatic = new Product($db);
|
||||||
|
|
||||||
if ($prodstatic->fetch($prodid) < 0) {
|
if ($prodstatic->fetch($prodid) < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user