afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-03-15 07:03 am

[dw-free] Remember entry security when an error makes the form reload

[commit: http://hg.dwscoalition.org/dw-free/rev/9064cd48d569]

http://bugs.dwscoalition.org/show_bug.cgi?id=432

Remember entry security when an error makes the update form reload

Patch by [community profile] isabeau.

Files modified:
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r c8ed0f9ee466 -r 9064cd48d569 cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Sun Mar 15 06:43:27 2009 +0000
+++ b/cgi-bin/weblib.pl	Sun Mar 15 07:02:25 2009 +0000
@@ -1723,7 +1723,7 @@ PREVIEW
 
             $$onload .= " changeSubmit('" . BML::ml('entryform.update3') . "', '$defaultjournal');";
             $$onload .= " getUserTags('$defaultjournal');" unless $not_a_journal;
-            $$onload .= " changeSecurityOptions('$defaultjournal');";
+            $$onload .= " changeSecurityOptions('$defaultjournal');" unless $opts->{'security'};
 
             $out .= LJ::html_submit('action:update', BML::ml('entryform.update4'),
                     { 'onclick' => $onclick, 'class' => 'submit', 'id' => 'formsubmit',
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org