Ticket #13760 (new Bug)
Opened 2 years ago
New collections - integer field index does not work
Reported by: | naro | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Unknown | Version: | 4.3 |
Keywords: | Cc: |
Description
Let's have my_number FieldIndex in portal catalog and add this index as possible Collection field using registry.xml supporting following operations:
<value key="operations">
<element>plone.app.querystring.operation.int.greaterThan</element> <element>plone.app.querystring.operation.int.lessThan</element> <element>plone.app.querystring.operation.int.is</element>
</value>
If this field is used in the Collection it simply does not work, because value entered to the Query field is not changed to 'int' so the query generated by parseFormquery is:
{'my_number': {'query': '2', 'range': 'max'}}
but should be
{'my_number': {'query': 2, 'range': 'max'}}