[Product-Developers] Re: collective.formcriteria doesn't work as aspected

SimO simahawk at gmail.com
Fri Mar 13 17:05:55 UTC 2009


Ross Patterson wrote:
> SimO <simahawk at gmail.com> writes:
>
>   
>> i.e: I set a range 0:100 and it shows me 5 items. If I put in the
>> portlet a second value of 80, instead of showing me 4 items it shows
>> NO items and worst, even if a re-insert 100 in the second value
>> nothing happens and I have to reload the page to get my items. The
>> weird thing is that if I set 0:80 trough the criteria tab it works
>> fine and it shows me 4 items.
>>     
>
> Sounds like there's a bug in the integer range criterion.  I've added
> this to the TODO:
>
>   http://dev.plone.org/collective/changeset/82270
>
> I'll get to fixing it as soon as I can.
>
> Thanks for the bug report!
> Ross
Hi Ross,

thanks to you for this useful product. BTW I think there's a second bug  :)

When you look at the "Criteria type" list you see TWO items for setting:

Integer value or range
Integer value or range
List of values
List of values
Select values from list
Select values from list

I found that for every couple the first is gives you the base setting 
without the "Form fields" section, thus not allowing you to show the 
field in the search. The second is the right one.

SimO





More information about the Product-Developers mailing list