User tests: Successful: Unsuccessful:
Joomla now checks for only non-trashed menu items when creating a new menu item and checking for alias collisions. Also overrides the publish function to make sure not to publish if an already published item exists with the same alias.
Issues.
| Labels |
Added:
?
|
||
No. When you attempt to untrash an a menu item that uses the same alias as a new menu item you get a conflicting alias error and it doesn't allow the untrashing. (As discussed in the issue #5753 (comment) )
After applying the patch and trying to create a menu item with the same alias as a trashed one I got the following error messge
1062 Duplicate entry '0-1-test-*' for key 'idx_client_id_parent_id_alias_language' SQL=INSERT INTOnqwzk_menu(parent_id,level,lft,rgt,alias,id,menutype,title,note,link,type,published,component_id,browserNav,access,template_style_id,params,home,language) VALUES ('1','1','279','280','test','0','top','test','','index.php?option=com_content&view=article&id=65','component','1','22','0','1','0','{\"show_title\":\"\",\"link_titles\":\"\",\"show_intro\":\"\",\"info_block_position\":\"\",\"show_category\":\"\",\"link_category\":\"\",\"show_parent_category\":\"\",\"link_parent_category\":\"\",\"show_author\":\"\",\"link_author\":\"\",\"show_create_date\":\"\",\"show_modify_date\":\"\",\"show_publish_date\":\"\",\"show_item_navigation\":\"\",\"show_vote\":\"\",\"show_icons\":\"\",\"show_print_icon\":\"\",\"show_email_icon\":\"\",\"show_hits\":\"\",\"show_tags\":\"\",\"show_noauth\":\"\",\"urls_position\":\"\",\"menu-anchor_title\":\"\",\"menu-anchor_css\":\"\",\"menu_image\":\"\",\"menu_text\":1,\"page_title\":\"\",\"show_page_heading\":\"\",\"page_heading\":\"\",\"pageclass_sfx\":\"\",\"menu-meta_description\":\"\",\"menu-meta_keywords\":\"\",\"robots\":\"\",\"secure\":0}','0','*')
It'll be the unique key on the database rearing its head. I got rid of
it on the install but it must persist on updates. I'll look into it.
On 2015-01-19 12:38, Brian Teeman wrote:
After applying the patch and trying to create a menu item with the
same alias as a trashed one I got the following error messge1062 Duplicate entry '0-1-test-*' for key
'idx_client_id_parent_id_alias_language' SQL=INSERT
INTOnqwzk_menu(parent_id,level,lft,rgt,alias,id,menutype,title,note,link,type,published,component_id,browserNav,access,template_style_id,params,home,language)
VALUES
('1','1','279','280','test','0','top','test','','index.php?option=com_content&view=article&id=65','component','1','22','0','1','0','{"show_title":"","link_titles":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_vote":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_hits":"","show_tags":"","show_noauth":"","urls_position":"","menu-anchor_title":"","menu-anchor_css":"","menu_image":"","menu_text":1,"page_title":"","show_page_heading":"","page_heading":"","pageclass_sfx":"","menu-meta_description":"","menu-meta_keywords":"","robots":"","secure":0}','0','*')
This comment was created with the J!Tracker Application [1] at
issues.joomla.org/joomla-cms/5825 [2].Reply to this email directly or view it on GitHub [3].
*
Links:
[1] https://github.com/joomla/jissues
[2] http://issues.joomla.org/tracker/joomla-cms/5825
[3]
#5825 (comment)
Website: smoothlines.net
Twitter: SmoothLines_hp
Facebook: smoothlineshp
Phone: 07878426329
Dont forget you will also need to update postgresql and ms sql
| Category | ⇒ | Administration UI/UX |
Tested; the error is still there. I must have misunderstood the reports of the commits of Jan 20th, 2015.
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-12 14:36:44 |
| Closed_By | ⇒ | brianteeman |
I am closing this as it appears to have been resolved elsewhere
If this is done what happens if I un-trash a menu item that uses the same
alias as a new menu item. Dont we end up with two menu items with the same
alias?
On 19 January 2015 at 11:57, Corofides notifications@github.com wrote:
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/