summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/Scaffold
diff options
context:
space:
mode:
authorwei <>2007-09-05 01:43:17 +0000
committerwei <>2007-09-05 01:43:17 +0000
commit9db6e012559ae7bdb46a9519c360bb936173f200 (patch)
treee85d0aace7888df21dcf892866e566b25ff5e244 /framework/Data/ActiveRecord/Scaffold
parent78af8b5719980ba12c391e20ecabdf3703452b05 (diff)
typos in blog tutorial. fixed empty result in active record relations. fixed keeping of post data in scaffold edit view when using renderer.
Diffstat (limited to 'framework/Data/ActiveRecord/Scaffold')
-rw-r--r--framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php
index 0550864b..ea9b2df5 100644
--- a/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php
+++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldEditView.php
@@ -214,6 +214,12 @@ class TScaffoldEditView extends TScaffoldBase
$record->save();
return true;
}
+ else if($this->_editRenderer!==null)
+ {
+ //preserve the form data.
+ $this->_editRenderer->updateRecord($this->getCurrentRecord());
+ }
+
return false;
}
@@ -300,5 +306,5 @@ interface IScaffoldEditRenderer extends IDataRenderer
*/
public function updateRecord($record);
}
-
+
?> \ No newline at end of file