wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r22869: LJSUP-13551: Doesn't save account settin...

Committer: wisest-owl
LJSUP-13551: Doesn't save account settings

U   trunk/htdocs/manage/settings/index.bml
Modified: trunk/htdocs/manage/settings/index.bml
===================================================================
--- trunk/htdocs/manage/settings/index.bml	2012-09-12 06:39:21 UTC (rev 22868)
+++ trunk/htdocs/manage/settings/index.bml	2012-09-12 07:20:26 UTC (rev 22869)
@@ -219,6 +219,10 @@
 
         $save_rv = LJ::Setting->save_all($u, \%POST, \@settings);
 
+        if (defined $FORM{'redirect_to'}) {
+            return BML::redirect($FORM{'redirect_to'});
+        }
+
         if (LJ::Setting->save_had_errors($save_rv)) {
             $submit_msg .= "<?errorbar $ML{'.errors'} errorbar?><br />";
         } else {
@@ -280,6 +284,10 @@
             $u->set_prop('opt_getselfemail' => exists($POST{'opt_getselfemail'}))
                 if LJ::get_cap($u, 'getselfemail');
 
+            if (defined $FORM{'redirect_to'}) {
+                return BML::redirect($FORM{'redirect_to'});
+            }
+
             if ($error) {
                 if ($error->isa('LJ::Subscription::QuotaError')) {
                     my $mlstring = $error->as_string;

Tags: bml, livejournal, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments