In my case, I'm using viewfield with an argument equal to the title of a node. As it explode()'s on commas, any titles with commas can't be selected. I've attached a small patch which changes the seperator to '\,', which I figure is far less likely to be used. It's not a real solution, but it should help for anyone with this problem.

It would probably be best to change the arguments field to be multiple text boxes instead, but that would be more work :).

--Andrew

CommentFileSizeAuthor
comma-arguments.patch1.29 KBdeviantintegral

Comments

darren oh’s picture

Status: Active » Needs review
darren oh’s picture

Status: Needs review » Needs work

What is actually needed is a way to recognize text within quotes as being a single argument.

darren oh’s picture

Assigned: Unassigned » darren oh

I'm working on this. Unfortunately, PHP lacks a simple function for parsing comma-separated values from a string.

darren oh’s picture

Version: 5.x-1.2 » 5.x-1.4
Status: Needs work » Fixed

Fixed in CVS commit 114808.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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