Ver Fonte

Made group items start at -1 instead of 0

Damian Peterson há 12 anos atrás
pai
commit
e82ab37d73
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/Gedmo/Sortable/SortableListener.php

+ 1 - 1
lib/Gedmo/Sortable/SortableListener.php

@@ -385,7 +385,7 @@ class SortableListener extends MappedEventSubscriber
         // see issue #226
         // see issue #226
         foreach ($groups as $group => $val) {
         foreach ($groups as $group => $val) {
             if (is_object($val) && $uow->isScheduledForInsert($val)) {
             if (is_object($val) && $uow->isScheduledForInsert($val)) {
-                return 0;
+                return -1;
             }
             }
         }
         }