Skip to content

Commit

Permalink
Fixed delete non-entity sub pagepart items
Browse files Browse the repository at this point in the history
  • Loading branch information
jverdeyen authored and Danny van Wijk committed Oct 14, 2024
1 parent f6dd36b commit ab130b9
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 ab130b9

Please sign in to comment.