Closed (fixed)
Project:
Link
Version:
6.x-2.10
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
13 Apr 2011 at 08:54 UTC
Updated:
29 Dec 2013 at 07:50 UTC
Jump to comment: Most recent, Most recent file
Hello,
Bug I encountered today, when I changed the settings of a link field. It was previously set to default (no target), and many nodes where saved with this value.
Then I changed the setting to "Allow user to choose".
Now, all the previously saved nodes see their links getting target="user". This is because of the way the field attributes are merged to the link attributes. To fix the problem manually, I need to save all the nodes impacted by the field change.
The patch attached provides a better way to "sanitize" the target attribute.
Regards,
David
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | link-target_value_change-1125766-8.patch | 1.06 KB | kalis1 |
| link_target_value_change.patch | 1.38 KB | David Stosik |
Comments
Comment #1
David Stosik commentedUp ?
Comment #2
eric_a commentedBroken in 7.x as well so I'm guessing it's going to be fixed in 7.x first and then backported.
Also this looks pretty major to me.
I'll try to come up with a proper 7.x-patch soon, but here's a snippet showing David Stosik's basic idea (getting rid of the "user" target attribute value after merging) for 7.x:
Comment #3
jcfiala commentedOkay - I think this is fixed for the 7.x-1.x branch. I'd like it if either of you could have a look at the dev roll (once this fix makes it in) and have a look and see if it works for you.
Assuming it's good, we'll move on and set up a fix for 6.x.
Comment #5
danmed commentedHello,
I am having this problem in Drupal 6 now. When is the 6.x fix due for?
This is a very annoying issue, and breaks my site navigation.
Thank you for your answer.
Comment #6
David Stosik commentedHello,
I think you can try to use the patch I uploaded on first post, as it was designed for 6.x-2.10.
David
Comment #7
jhodgdonI just tested the patch in the original post on this issue, in version 6.x-2.10, and it works perfectly. It applies with some "fuzz", but should be OK.
Comment #8
kalis1Here is a slightly modified patch applying for the 6.x-2.10 version (no code changes, only lines number)
Thank you @David Stosik !
Comment #9
webservant316 commentedis this committed to 6.x-2.dev?
Comment #10
jcfiala commentedCouldn't use the latest patch, but I copied it more or less into the code and committed and pushed to branch.
Please test the dev release sometime soon.