Skip to content

Commit

Permalink
Merge pull request #3423 from jverdeyen/delete-nested-non-entity-sub-…
Browse files Browse the repository at this point in the history
…pagepart-items

[PagePartBundle] Delete nested (non-entity) sub-items
  • Loading branch information
acrobat authored Jun 30, 2024
2 parents faa51ef + fdb966e commit e4d411e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Kunstmaan/PagePartBundle/PagePartAdmin/PagePartAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ public function preBindRequest(Request $request)
preg_match('#^delete_pagepartadmin_(\d+)_(.*)#', $key, $ppInfo);
preg_match_all('#([a-zA-Z0-9]+)_(\\d+)#', $ppInfo[2], $matches, PREG_SET_ORDER);

$subPagePartsToDelete[$ppInfo[1]][] = $this->getDeleteInfo($matches);
if (count($matches) > 0) {
$subPagePartsToDelete[$ppInfo[1]][] = $this->getDeleteInfo($matches);
}
}

$doFlush = false;
Expand Down

0 comments on commit e4d411e

Please sign in to comment.