Doh! So someone actually _was_ using the gridDataFilterConditionsStatement function. Guess it would have been worth grepping for...

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@455 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-31 17:57:30 +00:00
parent 6b7ce60ae3
commit e40778ddbd

View File

@@ -84,7 +84,7 @@ class LedgerEntriesController extends AppController {
function gridDataFilterConditionsStatement(&$params, &$model, $table, $key, $value) {
//pr(compact('table', 'key', 'value'));
if ($table == 'Account' && $value == '-AR-')
if ($table == 'Account' && $value['value_present'] && $value['value'] === '-AR-')
$value = $this->LedgerEntry->Ledger->Account->accountReceivableAccountID();
return parent::gridDataFilterConditionsStatement($params, $model, $table, $key, $value);
}