Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am facing a problem when I am trying to select term reference autocomplete in node.
A term contain comma "," and when I am trying to submit the node getting below error message :
"Failed to create or find a target called "ABC, XYZ (1007)" (entityreference_autocreate). This may be due to permissions, or possibly if there are two targets with identical titles already on the system."
Any idea?
Comment | File | Size | Author |
---|---|---|---|
#8 | Screen Shot 2017-04-28 at 1.28.33 PM.png | 34.05 KB | dman |
#8 | Screen Shot 2017-04-28 at 1.29.13 PM.png | 16.13 KB | dman |
#2 | Removed_validation_for_comma_contain_title-2774249-2.patch | 699 bytes | sanjay.soni |
Comments
Comment #2
sanjay.soni CreditAttribution: sanjay.soni as a volunteer commentedCreated a patch in which removed the condition for search comma in term/node reference title.
Please see attached patch.
Comment #3
sanjay.soni CreditAttribution: sanjay.soni as a volunteer commentedHi,
I found that there is already created a issue which is looking similar. Marking a relationship.
Thanks,
Sanjay
Comment #5
Sardis CreditAttribution: Sardis at Drupalway, Drupal Ukraine Community for Drupal Ukraine Community, Drupalway commentedTriggering Testing bot to conduct tests.
Comment #7
dman CreditAttribution: dman as a volunteer and at Sparks Interactive commentedI've been unable to replicate what used to be the issue that condition was avoiding with users adding multiple terms separated by commas in the current core UI.
Earlier Drupal had a textfield there and multiple terms would be entered into one textfield. Stock core doesn't seem to do that now, and we get a multifield widget - so the issue is isolated and it really doesn't need to be so careful about string-munging.
Thanks for the attention and the patch. Sorry it took a long time to get to - I wasn't using this module on current work so it had dropped off my radar a long while.
I'll still be looking for other edge cases, but for now, manually adding targets with commas should work as desired.
Comment #8
dman CreditAttribution: dman as a volunteer and at Sparks Interactive commentedOh Poop. Found that the original issue was with "Autocomplete (tags style)"
Comment #10
Sardis CreditAttribution: Sardis at Drupalway, Drupal Ukraine Community for Drupal Ukraine Community, Drupalway commentedWell... I would suggest using different separator for multiple terms in Autocomplete (tags style) widget. And provide a description regarding that separator. E.g.
;
symbol could be used as one. It's not that often used in titles (as long as i know). Could do the trick. I can even make a patch if you consider this as a viable option.