From 3dca204ac6afa89ad75574f25ffa06f55a40d68e Mon Sep 17 00:00:00 2001 From: abijah Date: Wed, 9 Dec 2009 18:02:00 +0000 Subject: [PATCH] Added the Deposit row to all tenders, not just those that have been deposited. This helps avoid confusion when looking at a non-deposited tender, since one may be trying to figure out whether or not it has been deposited and yet not remember if this is the appropriate screen. git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@900 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/views/tenders/view.ctp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/site/views/tenders/view.ctp b/site/views/tenders/view.ctp index 5691ca6..0ac812c 100644 --- a/site/views/tenders/view.ctp +++ b/site/views/tenders/view.ctp @@ -33,11 +33,13 @@ for ($i=1; $i<=4; ++$i) if (!empty($ttype["data{$i}_name"])) $rows[] = array($ttype["data{$i}_name"], $tender["data{$i}"]); -if (!empty($tender['deposit_transaction_id'])) - $rows[] = array('Deposit', $html->link('#'.$tender['deposit_transaction_id'], - array('controller' => 'transactions', - 'action' => 'deposit_slip', - $tender['deposit_transaction_id']))); +$rows[] = array('Deposit', + empty($tender['deposit_transaction_id']) + ? "-" + : $html->link('#'.$tender['deposit_transaction_id'], + array('controller' => 'transactions', + 'action' => 'deposit_slip', + $tender['deposit_transaction_id']))); if (!empty($tender['nsf_transaction_id'])) $rows[] = array('NSF', $html->link('#'.$tender['nsf_transaction_id'],