Skip to content
Snippets Groups Projects
Commit 78c933eb authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2142123 by pcambra: Adapt moveChildren function to match its interface.

parent b91c1a9e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -532,7 +532,7 @@ public function preSave(EntityStorageControllerInterface $storage_controller) {
// Need to check both plid and menu_name, since plid can be 0 in any menu.
if (isset($this->original) && ($this->plid != $this->original->plid || $this->menu_name != $this->original->menu_name)) {
$storage_controller->moveChildren($this, $this->original);
$storage_controller->moveChildren($this);
}
// Find the router_path.
if (empty($this->router_path) || empty($this->original) || (isset($this->original) && $this->original->link_path != $this->link_path)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment