Closed (fixed)
Project:
Viewfield
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Feb 2008 at 20:28 UTC
Updated:
19 May 2008 at 21:22 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| comma-arguments.patch | 1.29 KB | deviantintegral |
Comments
Comment #1
darren ohComment #2
darren ohWhat is actually needed is a way to recognize text within quotes as being a single argument.
Comment #3
darren ohI'm working on this. Unfortunately, PHP lacks a simple function for parsing comma-separated values from a string.
Comment #4
darren ohFixed in CVS commit 114808.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.