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
This commit is contained in:
abijah
2009-07-08 14:48:34 +00:00
parent c455b383f5
commit cb627b8ec7

View File

@@ -169,7 +169,7 @@ class AppModel extends Model {
if (isset($this->data[$alias][$field])) { if (isset($this->data[$alias][$field])) {
/* pr("Fix Date for '$alias'.'$field'; current value = " . */ /* pr("Fix Date for '$alias'.'$field'; current value = " . */
/* "'{$this->data[$alias][$field]}'"); */ /* "'{$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. // Seems CakePHP is broken for the default timestamp.
// It tries to automagically set the value to CURRENT_TIMESTAMP // It tries to automagically set the value to CURRENT_TIMESTAMP
// which is wholly rejected by MySQL. Just put it back to NULL // which is wholly rejected by MySQL. Just put it back to NULL