Skip to content

Commit

Permalink
Merge branch '7.1' into 7.x
Browse files Browse the repository at this point in the history
* 7.1:
  Fixed delete non-entity sub pagepart items
  • Loading branch information
acrobat committed Jun 30, 2024
2 parents 19b17f9 + 34e0c4f commit a44ead7
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 a44ead7

Please sign in to comment.