[Jifty-commit] r4061 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Sep 7 18:23:57 EDT 2007


Author: clkao
Date: Fri Sep  7 18:23:57 2007
New Revision: 4061

Modified:
   jifty/trunk/lib/Jifty/Web.pm

Log:
webservices_rediret: don't redirect if there's any failed action.


Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Web.pm	Fri Sep  7 18:23:57 2007
@@ -697,6 +697,8 @@
     # XXX: move to singlepage plugin
     my ($spa) = Jifty->find_plugin('Jifty::Plugin::SinglePage') or return;
 
+    return if $self->failed_actions;
+
     Jifty->web->request->remove_state_variable( 'region-'.$spa->region_name );
     Jifty->web->request->add_fragment(
         name      => $spa->region_name,


More information about the Jifty-commit mailing list