fix(17): WR-03 require a reference for a menu entry whose type takes one

An entry of a registry type with References saved without a reference
passed the dependent recheck (null is always among the options), then
resolved to nothing and vanished from the public tree with its children.
The admin save now refuses it (errors.reference_required).
This commit is contained in:
2026-10-12 21:33:36 +02:00
parent 7255d34ae0
commit 64215f2bf3
5 changed files with 16 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ errors:
url_scheme: Use a link that starts with http://, https://, mailto:, tel:, / or #.
target: Choose Same tab or New tab.
type_unknown: Choose one of the listed types.
reference_required: Choose a reference for this type.
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

@@ -43,6 +43,7 @@ errors:
url_scheme: Podaj link zaczynający się od http://, https://, mailto:, tel:, / lub #.
target: Wybierz Tej samej karcie lub Nowej karcie.
type_unknown: Wybierz jeden z typów z listy.
reference_required: Wybierz odnośnik dla tego typu.
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.