Closed hbugdoll closed 8 months ago
The validation is called, but it looks like the exists query is not correctly https://github.com/luyadev/luya-module-cms/blob/master/src/models/NavItem.php#L263-L269 i will check this quickly
@nadar First of all, many thanks for your quick support!
Edit: Further discussion moved to new issue https://github.com/luyadev/luya-module-cms/issues/413.
What steps will reproduce the problem?
alias
(= "URL Path segment") from 1.What is the expected result?
nav_item_model_error_urlsegementexistsalready
is raised.What do you get instead? (A Screenshot can help us a lot!)
alias
, see incms_nav_item
:So
Nav::moveToBefore()
resp.Nav::moveToAfter()
are failing when pages with samealias
are invoked.It seems that
NavItem::validateAlias()
isn't called before page creation.Additional infos