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

Commit

Permalink
Fix Child "_delete" does not exist.
Browse files Browse the repository at this point in the history
If current role is not allowed to delete the item the `_delete` checkboxes are not added in items.
  • Loading branch information
sad270 authored and greg0ire committed Sep 30, 2019
1 parent e8e5305 commit b5a8954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Listener/CollectionOrderListener.php
Expand Up @@ -67,7 +67,7 @@ public function onSubmit(FormEvent $event)

/** @var $item FormBuilder */
foreach ($form->get($this->name) as $key => $item) {
if ($item->get('_delete')->getData()) {
if ($item->has('_delete') && $item->get('_delete')->getData()) {
// do not re-add a deleted child
continue;
}
Expand Down

0 comments on commit b5a8954

Please sign in to comment.