Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.10.0, 4.0.0
-
None
Description
The URL alias <</test>> already exists, and it points to <<content/view/full/2>>
The alias pointed to another node than node 2 though.
The code in kernel/content/urlalias_global.php:
$result = eZURLAliasML::storePath( $aliasText, $action, $language, $linkID, $isAlwaysAvailable, $parentID, true, false, false ); if ( $result['status'] === eZURLAliasML::LINK_ALREADY_TAKEN ) { $lastElements = eZURLAliasML::fetchByPath( $result['path'] ); if ( count ( $lastElements ) > 0 ) {
However, $result['path'] will be null, as this code is executed in eZURLAliasML::storePath:
return array( 'status' => self::LINK_ALREADY_TAKEN, 'path' => null, 'element' => null );
Tested on both 3.10 and trunk.
Attachments
Issue Links
- relates to
-
EZP-12785 Multilingual url aliases
- Closed