Skip to content

Commit

Permalink
Merge branch '6.4' into 6.x
Browse files Browse the repository at this point in the history
* 6.4:
  Fixed delete non-entity sub pagepart items
  • Loading branch information
acrobat committed Jun 30, 2024
2 parents 6f1daaa + e4d411e commit 39594c7
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 39594c7

Please sign in to comment.