From 0727d5f091bbe078ec59330cf4ba00ba22f0b9cd Mon Sep 17 00:00:00 2001 From: abijah Date: Tue, 11 Aug 2009 01:07:01 +0000 Subject: [PATCH] Fixed problem when effective_date is an empty string, as opposed to completely missing. git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@523 97e9348a-65ac-dc4b-aefc-98561f571b83 --- models/transaction.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/transaction.php b/models/transaction.php index 33fc004..0e85c06 100644 --- a/models/transaction.php +++ b/models/transaction.php @@ -630,7 +630,8 @@ class Transaction extends AppModel { if (!empty($se)) { $se['transaction_id'] = $ret['transaction_id']; - $se += array('effective_date' => $transaction_stamp); + if (empty($se['effective_date'])) + $se['effective_date'] = $transaction_stamp; $result = $this->StatementEntry->addStatementEntry($se); $ret['entries'][$e_index]['StatementEntry'] = $result; if ($result['error']) {