Closed (fixed)
Project:
Entity Translation
Version:
7.x-1.x-dev
Component:
Menu integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2013 at 14:09 UTC
Updated:
23 Feb 2015 at 00:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bforchhammer commentedI don't understand your problem... That function should only prevent multiple menu links to the same node, i.e. it shouldn't affect menu links with the path set to
<nolink>or<separator>at all. And either way, you should still be able add additional items via the menu configuration area.Can you elaborate on what's not working as expected, and what the expected behavior is? Also, it would be helpful to have steps to reproduce the error on a clean install (with dev-versions).
Comment #2
candelas commentedHello
I am having the same problem. With http://drupal.org/project/special_menu_items you can make menu items that has not link and you do it writing in the Path field
<nolink>. With your validation function, you are only able to have one, since when you try to create the second, you get this errorThere are already one or more items with a language assigned for the given path. Remove them or assign a language to this item too.The solution it would be that when you check, if it is
<nolink>or<separator>they are not considered as duplicate. @heyyo did you find a solution? ThanksComment #3
candelas commentedComment #4
candelas commentedI have make this change in the function and everything works ok. If you want and say it is ok, I can make a patch. Thanks for your module
in line 200
from
if ($item['language'] == LANGUAGE_NONE){to
if ($item['language'] == LANGUAGE_NONE && $form_state['values']['link_path'] !="<nolink>" && $form_state['values']['link_path'] !="<separator>"){Comment #5
topplestack commentedcandelas,
Can you create a patch? I'm having the same issue. Also, what file are you patching? It's not clear in your comment.
We are experiencing the same thing. I believe that there has been possibly a core update that has caused this. We are not able to create any more menu items in any of our menus and cannot edit any of the existing items without receiving this error. Whatever it was that allowed this to work before, is not working now.
Comment #6
candelas commented@Topplestack, sorry but at the moment for 2 weeks or more I am overload. Also, the people in the module didn't say if they think it is a right solution...
Comment #7
my-family commentedI experienced the same issue with the menu_firstchild (https://www.drupal.org/project/menu_firstchild) module which adds the value.
Comment #8
jsacksick commentedI also stumbled upon this issue, I created menu items with a path set to
<nolink>thanks to the special_menu_items module. The validation will fail if you try to create more than one item with the same path with a language set to neutral.The attached patch adds a condition and checks if the link_path doesn't start by <, it should cover most of the usecases.
Comment #9
plachLooks good to me, thanks.
Comment #10
plachCommitted and pushed, thanks.