fix(17): WR-01 keep a menu entry's subtree and parent in its menu

- The admin refuses a parent from another menu than the one the form
  names (errors.parent_menu) instead of moving the entry to the parent's
  menu without a word; BeforeSave records the named menu
  (MenuEntry.RequestedMenuID).
- An entry moved to another menu moves its descendants in the same
  transaction, so the public tree no longer drops them.
This commit is contained in:
2026-10-12 21:30:36 +02:00
parent 43267de323
commit 7255d34ae0
6 changed files with 69 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ models:
label: Menu entry
label_plural: Menu entries
menu: Menu
menu_comment: Entries with a parent belong to the parent's menu.
menu_comment: Entries with a parent belong to the parent's menu; leave it empty to take the parent's. Moving an entry moves its sub-entries with it.
parent: Parent
type: Type
type_url: Link
@@ -45,3 +45,4 @@ errors:
type_unknown: Choose one of the listed types.
menu_required: Choose a menu or a parent entry.
parent_cycle: An entry cannot be placed under itself or one of its own entries.
parent_menu: The parent entry belongs to another menu. Choose a parent from the selected menu, or change the menu.

View File

@@ -19,7 +19,7 @@ models:
label: Pozycja menu
label_plural: Pozycje menu
menu: Menu
menu_comment: Pozycje z pozycją nadrzędną należą do jej menu.
menu_comment: Pozycje z pozycją nadrzędną należą do jej menu; zostaw puste, aby przejąć menu pozycji nadrzędnej. Przeniesienie pozycji przenosi też jej podpozycje.
parent: Pozycja nadrzędna
type: Typ
type_url: Link
@@ -45,3 +45,4 @@ errors:
type_unknown: Wybierz jeden z typów z listy.
menu_required: Wybierz menu albo pozycję nadrzędną.
parent_cycle: Pozycji nie można umieścić pod nią samą ani pod jej własnymi pozycjami.
parent_menu: Pozycja nadrzędna należy do innego menu. Wybierz pozycję nadrzędną z wybranego menu albo zmień menu.