Janine (janinedog) wrote in changelog,
Janine
janinedog
changelog

[] r14756: LJSV-490

Committer: janine
LJSV-490

Don't remove the subscriptions to "Someone replies to any comment I make*" and "I comment in someone's journal, on any entry*" when submitting the form on /manage/subscriptions/user.bml.

U   trunk/cgi-bin/weblib.pl
U   trunk/htdocs/manage/settings/index2.bml
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2009-01-06 18:40:07 UTC (rev 14755)
+++ trunk/cgi-bin/weblib.pl	2009-01-06 19:30:59 UTC (rev 14756)
@@ -3633,6 +3633,7 @@
 
     $ret .= LJ::html_hidden({name => 'mode', value => 'save_subscriptions'});
     $ret .= LJ::html_hidden({name => 'ret_url', value => $ret_url});
+    $ret .= LJ::html_hidden({name => 'post_to_settings_page', value => $post_to_settings_page});
 
     # print buttons
     my $referer = BML::get_client_header('Referer');

Modified: trunk/htdocs/manage/settings/index2.bml
===================================================================
--- trunk/htdocs/manage/settings/index2.bml	2009-01-06 18:40:07 UTC (rev 14755)
+++ trunk/htdocs/manage/settings/index2.bml	2009-01-06 19:30:59 UTC (rev 14756)
@@ -298,7 +298,9 @@
             return BML::redirect($POST{ret_url}) if $POST{ret_url} && !scalar @notif_errors;
 
             # save the LJ::Setting notifications too
-            $save_rv = LJ::Setting->save_all($u, \%POST, \@settings);
+            unless ($POST{post_to_settings_page}) {
+                $save_rv = LJ::Setting->save_all($u, \%POST, \@settings);
+            }
 
             if (scalar @notif_errors || LJ::Setting->save_had_errors($save_rv)) {
                 $submit_msg .= LJ::error_list(@notif_errors) . "<br />";

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