Fixed bug with statement entry counts when statement_entry_id is set
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@554 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -58,16 +58,21 @@ class StatementEntriesController extends AppController {
|
||||
),
|
||||
);
|
||||
|
||||
if (!empty($params['post']['custom']['statement_entry_id'])) {
|
||||
$link['ChargeEntry'] = array();
|
||||
$link['DisbursementEntry'] = array();
|
||||
}
|
||||
|
||||
return array('link' => $link);
|
||||
}
|
||||
|
||||
function gridDataTables(&$params, &$model) {
|
||||
$tables = $this->gridDataCountTables($params, $model);
|
||||
|
||||
if (in_array('applied', $params['post']['fields']) ||
|
||||
isset($params['post']['custom']['statement_entry_id'])) {
|
||||
$tables['link']['DisbursementEntry'] = array();
|
||||
$tables['link']['ChargeEntry'] = array();
|
||||
if (in_array('applied', $params['post']['fields'])) {
|
||||
$tables['link'] +=
|
||||
array('ChargeEntry' => array(),
|
||||
'DisbursementEntry' => array());
|
||||
}
|
||||
|
||||
return $tables;
|
||||
|
||||
Reference in New Issue
Block a user