Another K2.4 holder over... We had, when checking for position, ->where(, "=", NULL) which would never find any. It should have been ->where(, "is", NULL)

This commit is contained in:
Tim Almdal
2010-01-04 12:39:48 -08:00
parent cbf9754922
commit bfcd4efe92
+1 -1
View File
@@ -460,7 +460,7 @@ class Item_Model extends ORM_MPTT {
// deal with it the hard way.
$count = $db->from("items")
->where("parent_id", "=", $this->id)
->where($this->sort_column, "=", NULL)
->where($this->sort_column, "IS", NULL)
->merge_where($where)
->count_records();