Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Can reorder 1st item to 2nd position with a list greater than 3
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and dbu committed Feb 5, 2015
1 parent af673da commit 8fa06d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form/Listener/CollectionOrderListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function onSubmit(FormEvent $event)
// do not re-add a deleted child
continue;
}
if ($item->getName()) {
if ($item->getName() && !is_numeric($item->getName())) {
// keep key in collection
$newCollection[$item->getName()] = $item->getData();
} else {
Expand Down

0 comments on commit 8fa06d9

Please sign in to comment.