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@455 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -84,7 +84,7 @@ class LedgerEntriesController extends AppController {
|
|||||||
|
|
||||||
function gridDataFilterConditionsStatement(&$params, &$model, $table, $key, $value) {
|
function gridDataFilterConditionsStatement(&$params, &$model, $table, $key, $value) {
|
||||||
//pr(compact('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();
|
$value = $this->LedgerEntry->Ledger->Account->accountReceivableAccountID();
|
||||||
return parent::gridDataFilterConditionsStatement($params, $model, $table, $key, $value);
|
return parent::gridDataFilterConditionsStatement($params, $model, $table, $key, $value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user