Closed (fixed)
Project:
Flag
Version:
6.x-2.0-beta1
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Dec 2009 at 23:59 UTC
Updated:
22 Jan 2010 at 05:10 UTC
Right now if you Flag a node (for the first time) and then unflag it, the flag_counts table is updated with a count of "0". The problem with that is that nodes that have never been flagged have a count of NULL (since there is no row at all). This causes sorting problems in Views and SQL queries since 0 is ordered before NULL.
Attached are Flag 1 and 2 patches.
| Comment | File | Size | Author |
|---|---|---|---|
| flag_null2.patch | 2.33 KB | quicksketch | |
| flag_null.patch | 1.62 KB | quicksketch |
Comments
Comment #1
quicksketchCommitted to both branches.