• R/O
  • SSH
  • HTTPS

kaede: Commit


Commit MetaInfo

Revision152 (tree)
Time2007-03-02 21:52:06
Authorhawkring

Log Message

backイベントを特別扱いして、
POST後アクションを記録しないようにした

Change Summary

Incremental Difference

--- Kaede/branches/try-state-pattern/Core/Action/Stateful.php (revision 151)
+++ Kaede/branches/try-state-pattern/Core/Action/Stateful.php (revision 152)
@@ -107,8 +107,10 @@
107107 */
108108 function after_post(&$req, $args)
109109 {
110- $this->set('indexAfterLastPost',
111- $this->context->getCurrentIndex());
110+ if($args['actionMethod'] != 'back') { //except for 'back' event
111+ $this->set('indexAfterLastPost',
112+ $this->context->getCurrentIndex());
113+ }
112114
113115 if(!$this->context->isActionChanged()) {
114116 $this->context->redirect($this->context->getCurrentAction());
Show on old repository browser