[-] BO : fix bug where drag and drop on tabs sub-lists is broken
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13774 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
b5b3117365
commit
79b8c2d288
1 file changed
+8
@@ -919,6 +919,14 @@ if (Tools::isSubmit('ajaxTabsPositions'))
|
|||||||
$id_tab = (int)(Tools::getValue('id_tab'));
|
$id_tab = (int)(Tools::getValue('id_tab'));
|
||||||
$positions = Tools::getValue('tab');
|
$positions = Tools::getValue('tab');
|
||||||
|
|
||||||
|
// when changing positions in a tab sub-list, the first array value is empty and needs to be removed
|
||||||
|
if (!$positions[0])
|
||||||
|
{
|
||||||
|
unset($positions[0]);
|
||||||
|
// reset indexation from 0
|
||||||
|
$positions = array_merge($positions);
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($positions as $position => $value)
|
foreach ($positions as $position => $value)
|
||||||
{
|
{
|
||||||
$pos = explode('_', $value);
|
$pos = explode('_', $value);
|
||||||
|
|||||||
Reference in new issue
Block a user