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-06-29 03:15 pm

[dw-free] display issues with entry preview

[commit: http://hg.dwscoalition.org/dw-free/rev/5d53171dcf09]

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

Fix tags display and track icon status on entry preview.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/preview/entry.bml
--------------------------------------------------------------------------------
diff -r 5c9bba669a0a -r 5d53171dcf09 htdocs/preview/entry.bml
--- a/htdocs/preview/entry.bml	Sun Jun 28 16:35:01 2009 +0000
+++ b/htdocs/preview/entry.bml	Mon Jun 29 15:14:31 2009 +0000
@@ -232,11 +232,11 @@
                 'screened' => 0,
             });
 
-        # build tag objects, faking kwid as '0'
+        # build tag objects, faking kwid as '-1'
         # * invalid tags will be stripped by is_valid_tagstring()
         my @taglist = ();
         LJ::Tags::is_valid_tagstring($POST{prop_taglist}, \@taglist);
-        @taglist = map { LJ::S2::Tag($u, 0, $_) } @taglist;
+        @taglist = map { LJ::S2::Tag($u, -1, $_) } @taglist;
 
         # format it
         my $raw_subj = $req{'subject'};
@@ -248,7 +248,7 @@
             'security' => $req{'security'},
             'allowmask' => $req{'allowmask'},
             'props' => $req{'props'},
-            'itemid' => 0,
+            'itemid' => -1,
             'comments' => $comments,
             'journal' => $userlite_journal,
             'poster' => $userlite_poster,
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

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