* fox a bug for getPairs of model.php of productplan.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-04-10 08:02:23 +00:00
parent e68fb1cbe9
commit f7e7fb24e4
+1 -1
View File
@@ -55,7 +55,7 @@ class productplanModel extends model
return array('' => '') + $this->dao->select('id,title')->from(TABLE_PRODUCTPLAN)
->where('product')->eq((int)$product)
->andWhere('deleted')->eq(0)
->beginIF($expired = 'unexpired')
->beginIF($expired == 'unexpired')
->andWhere('end')->gt($date)
->fi()
->orderBy('begin')->fetchPairs();