Nodes with commas in the title

histrion - March 27, 2008 - 22:00
Project:Enhanced Nodereference Autocomplete Widget
Version:5.x-1.2
Component:User interface
Category:bug report
Priority:normal
Assigned:Josh Benner
Status:closed
Description

Great widget; thanks for this. I've run into a problem, however, and I think it's likely because the titles of the nodes I'm referencing contain commas -- person names in "Surname, Given name" order, in this case.

Here's a representative sequence (names changed to protect the innocent):

Doe
-->"Doe, John" [nid:1]
"Doe, John" [nid:27],jane
-->"Doe, John", "Doe, Jane" [nid:2]

Selecting the second node reference deletes the actual reference tag from the first reference.

Doesn't appear to happen unless the first referenced node's title contains a comma.

#1

lyngve - April 12, 2008 - 12:38

Same problem here. Is there any fix?

#2

jcarnett - August 25, 2008 - 19:31
Status:active» needs review

Here's a patch that ought to do the trick. Let me know if you see any issues.

AttachmentSize
nr_autocomplete.module.patch 1.38 KB

#3

Vuds - September 19, 2008 - 01:00
Status:needs review» reviewed & tested by the community

The patch works very well!

Thank you very much!

#4

Josh Benner - November 21, 2008 - 12:56
Assigned to:Anonymous» Josh Benner
Status:reviewed & tested by the community» fixed

The patch has been applied and a new release will be rolled momentarily.

#5

System Message - December 5, 2008 - 13:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.