Impossible to search for 0

Bug #659747 reported by Peter Körner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chive
Fix Released
Medium
David Roth

Bug Description

It is not possible to for for a field equals 0.

Wenn I go to to the search tab and search a field of type tinyint for being 0, the condition is ignored. The problem is, that the search value of 0 evaluates to false in TableController.php. I fixed this by replacing the boolean-cast with a stelen > 0 test.

Please find my patch attached.
Peter

Related branches

Revision history for this message
Peter Körner (peter-mazdermind) wrote :
Revision history for this message
David Roth (davrot) wrote :

Thanks. Your contributions are appreciated.

Changed in chive:
assignee: nobody → David Roth (davrot)
importance: Undecided → Medium
milestone: none → 0.4.0
status: New → Triaged
David Roth (davrot)
Changed in chive:
status: Triaged → Fix Committed
David Roth (davrot)
Changed in chive:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.