You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And these methods don't convert the value to int (because they are used for other string based types).
Also I tested the plone.app.querystring.operation.selection.is and it fail too with an int field.
Looking at the tests of these methods, you clearly see that it is not testing every kind of data.
My suggestions are to create new methods just for int fields (doing type cast) and to add a new operator for int fields plone.app.querystring.operation.intselection.is (something like this)
The text was updated successfully, but these errors were encountered:
I have an integer field and when I try to create a filter on it it didn't work.
Looking at p.a.querystring code I see that the related operators don't work:
They are mapped to these methods respectively:
And these methods don't convert the value to int (because they are used for other string based types).
Also I tested the plone.app.querystring.operation.selection.is and it fail too with an int field.
Looking at the tests of these methods, you clearly see that it is not testing every kind of data.
My suggestions are to create new methods just for int fields (doing type cast) and to add a new operator for int fields plone.app.querystring.operation.intselection.is (something like this)
The text was updated successfully, but these errors were encountered: