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.

Comments

liupascal’s picture

Status: Active » Needs review
StatusFileSize
new842 bytes

Here is a little patch to let a user save an empty value .. I tested and it works for me.

twistor’s picture

Assigned: Unassigned » twistor
Status: Needs review » Fixed

Thanks!
I ended up doing it a bit differently, but nice catch.

liupascal’s picture

@twistor :
Is this fixed in the dev ? I downloaded the latest version and i can't save an empty value.
Thanks

twistor’s picture

It should be. Perhaps the new dev release hadn't rolled yet. Is it still not working for you?

liupascal’s picture

Status: Fixed » Needs review

Last commit is 9weeks ago, did you push your changes ? Its still not working, the latest dev is probably not up to date

Status: Fixed » Closed (fixed)

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