Closed (fixed)
Project:
Feeds Tamper
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Dec 2011 at 15:14 UTC
Updated:
3 Jan 2012 at 18:40 UTC
Jump to comment: Most recent file
Hey,
I am using Explode to create an array of value.
For the Limit field, here is the description :
"If limit is set and positive, the returned items will contain a maximum of limit with the last item containing the rest of string. If limit is negative, all components except the last -limit are returned. If the limit parameter is zero, then this is treated as 1. If limit is not set, then there will be no limit on the number of items returned."
However, when I try to submit the form is an empty value, the field is automatically saved with 0 in it.
The "empty" value option is not usable as the configuration form saving prevents it.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | allow_emptyvalue_explode_form-1363792.patch | 842 bytes | liupascal |
Comments
Comment #1
liupascal commentedHere is a little patch to let a user save an empty value .. I tested and it works for me.
Comment #2
twistor commentedThanks!
I ended up doing it a bit differently, but nice catch.
Comment #3
liupascal commented@twistor :
Is this fixed in the dev ? I downloaded the latest version and i can't save an empty value.
Thanks
Comment #4
twistor commentedIt should be. Perhaps the new dev release hadn't rolled yet. Is it still not working for you?
Comment #5
liupascal commentedLast commit is 9weeks ago, did you push your changes ? Its still not working, the latest dev is probably not up to date
Comment #6
twistor commented7.x
http://drupalcode.org/project/feeds_tamper.git/commit/172261c
6.x
http://drupalcode.org/project/feeds_tamper.git/commit/bcde0bb