|
From: <gem...@li...> - 2012-12-13 13:14:01
|
Revision: 1059
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=1059&view=rev
Author: matijsdejong
Date: 2012-12-13 13:13:53 +0000 (Thu, 13 Dec 2012)
Log Message:
-----------
processAfterLoad expects a nested array
Modified Paths:
--------------
trunk/library/classes/MUtil/Model/JoinModel.php
trunk/library/classes/MUtil/Model/TableModel.php
Modified: trunk/library/classes/MUtil/Model/JoinModel.php
===================================================================
--- trunk/library/classes/MUtil/Model/JoinModel.php 2012-12-13 10:08:08 UTC (rev 1058)
+++ trunk/library/classes/MUtil/Model/JoinModel.php 2012-12-13 13:13:53 UTC (rev 1059)
@@ -373,9 +373,9 @@
if ($this->getChanged() > $oldChanged) {
$this->setChanged(++$oldChanged);
}
-
+
// Handle possible onLoad
- $newValues = $this->processAfterLoad($newValues);
+ $newValues = $this->processAfterLoad(array($newValues));
return $newValues;
}
Modified: trunk/library/classes/MUtil/Model/TableModel.php
===================================================================
--- trunk/library/classes/MUtil/Model/TableModel.php 2012-12-13 10:08:08 UTC (rev 1058)
+++ trunk/library/classes/MUtil/Model/TableModel.php 2012-12-13 13:13:53 UTC (rev 1059)
@@ -120,9 +120,9 @@
// $this->_saveTableData returns the new row values, including any automatic changes.
// add $newValues to throw nothing away.
$updatedValues = $this->_saveTableData($this->_table, $newValues, $filter, parent::SAVE_MODE_ALL) + $newValues;
-
+
// Handle possible onLoad
- $updatedValues = $this->processAfterLoad($updatedValues);
+ $updatedValues = $this->processAfterLoad(array($updatedValues));
return $updatedValues;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|