From e74f8987d9c02e8c4cf10912096c15f235e6d0d1 Mon Sep 17 00:00:00 2001 From: abijah Date: Tue, 11 Aug 2009 18:25:40 +0000 Subject: [PATCH] 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@539 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/controllers/transactions_controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/controllers/transactions_controller.php b/site/controllers/transactions_controller.php index c61b99a..30a2b95 100644 --- a/site/controllers/transactions_controller.php +++ b/site/controllers/transactions_controller.php @@ -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); }