From 0b773cfc35049cccabdc59136ad5d8e640ec8e27 Mon Sep 17 00:00:00 2001 From: abijah Date: Wed, 26 Aug 2009 20:16:11 +0000 Subject: [PATCH] Removed the Balance column from vacant and unavailable grids, since they should always be zero. git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@792 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/views/elements/units.ctp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/views/elements/units.ctp b/site/views/elements/units.ctp index 0d3653e..b67aa17 100644 --- a/site/views/elements/units.ctp +++ b/site/views/elements/units.ctp @@ -13,6 +13,9 @@ $cols['Status'] = array('index' => 'Unit.status', 'formatter' => 'name'); // $cols['Balance'] = array('index' => 'balance', 'formatter' => 'currency'); $cols['Comment'] = array('index' => 'Unit.comment', 'formatter' => 'comment'); +if (in_array($this->params['action'], array('vacant', 'unavailable'))) + $grid->invalidFields('Balance'); + // Render the grid $grid ->columns($cols)