Closed (fixed)
Project:
References
Version:
7.x-2.x-dev
Component:
Code: node_reference
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 08:08 UTC
Updated:
5 Dec 2012 at 20:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
yched commentedMakes sense. Committed the attached patch.
Comment #2
fgmI think this rather means that the lenght limit should be raised, not removed.
On a 64-bit PHP, max length would be 255 + strlen('[nid: ]') + ceil(log10(2^64)), i.e. 255 + 7 + 20 = 282, would it not ? And 272 on a 32-bit. Assuming unsigned nids.
Comment #3
yched commentedThe value that we store from the widget is a nid anyway, so I'm not sure what's the point of settings a #maxlength on the textfield form input anyway ? FWIW, the autocomplete widget for userref doesn't have any.
Comment #4
fgmGood point.
Comment #6
scor commentedPatch #1 reintroduced #1064544: Node reference doesn't work when title exceeds 128 characters. you need to override #maxlength on the textfield element which is otherwise set to 128 by default by the form API. including a test so we don't ever have to deal with this again. the test_only patch should fail.
Comment #8
tempo22 commentedthis patch still didn't made it to release ?
Comment #9
scor commented#6 remains to be reviewed/committed. I'm reuploading it here so the testbot does not get confused.
@tempo22 please test this patch and if it works for you, RTBC this issue please :)
Comment #10
yched commentedYup, this dropped off my radar when rolling the release, sorry about that.
Committed. Thanks !
Comment #11
scor commentedThanks Yves!
http://drupalcode.org/project/references.git/commit/ba638b4af34d61fe517d...
Comment #12
smclernon commentedI have implemented this patch recently and can confirm it works.
Comment #13
yched commented@smclernon: the patch has been committed already. It will be in forthcoming 2.1 release
Comment #15
Alex Andrascu commentedWhat happened with this ?
Comment #16
scor commented@Alex Andrascu: it was committed and should be in the latest release. is it not working for you?
Comment #17
Alex Andrascu commentedI haven't tried dev tbh but i've seen last message from February and still no stable release. Plus the issue queue is crammed. I'm on a critical project near the deadline and not sure if to go with dev or not. It'll require additional testing time.
Thanks for getting back @scor
Comment #18
scor commentednot sure this project will get a new release, since http://drupal.org/project/entityreference is the recommended way of doing node/user references now. dev snapshot should work.
Comment #19
Alex Andrascu commentedI know about entityreference but... it's way to late to switch to that unfortunatelly. I guess all that's left is to give dev a go. Thanks again.