From cb627b8ec733ccee102d7d16ffb1b2d280414b35 Mon Sep 17 00:00:00 2001 From: abijah Date: Wed, 8 Jul 2009 14:48:34 +0000 Subject: [PATCH] Fixed a cut/paste error when moving code from the Transaction model into the App model. git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@255 97e9348a-65ac-dc4b-aefc-98561f571b83 --- app_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_model.php b/app_model.php index f246e69..3838982 100644 --- a/app_model.php +++ b/app_model.php @@ -169,7 +169,7 @@ class AppModel extends Model { if (isset($this->data[$alias][$field])) { /* pr("Fix Date for '$alias'.'$field'; current value = " . */ /* "'{$this->data[$alias][$field]}'"); */ - if ($this->data[$alias]['stamp'] === 'CURRENT_TIMESTAMP') + if ($this->data[$alias][$field] === 'CURRENT_TIMESTAMP') // Seems CakePHP is broken for the default timestamp. // It tries to automagically set the value to CURRENT_TIMESTAMP // which is wholly rejected by MySQL. Just put it back to NULL