Made viewing the deposit slip the default action when viewing the list of deposit transactions.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@539 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-11 18:25:40 +00:00
parent 6b3266f022
commit e33741f579

View File

@@ -92,7 +92,8 @@ class TransactionsController extends AppController {
}
function gridDataPostProcessLinks(&$params, &$model, &$records, $links) {
$links['Transaction'] = array('id');
$links['Transaction'] = array('id', 'action' => ($params['action'] == 'deposit'
? 'deposit_slip' : 'view'));
return parent::gridDataPostProcessLinks($params, $model, $records, $links);
}