alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r23034: LJSUP-13827: Can't open entry with cut i...

Committer: afedorov
LJSUP-13827: Can't open entry with cut in moderation queue

U   trunk/htdocs/community/moderate.bml
Modified: trunk/htdocs/community/moderate.bml
===================================================================
--- trunk/htdocs/community/moderate.bml	2012-10-03 07:01:08 UTC (rev 23033)
+++ trunk/htdocs/community/moderate.bml	2012-10-03 08:25:48 UTC (rev 23034)
@@ -97,7 +97,8 @@
                 $req->{props}->{taglist} = $POST{'prop_taglist'};
         }
         if ($mode eq 'approve_do') {
-            my $res = LJ::Protocol::do_request('postevent', $req, \$prot_err, { 'nomod'=>1, 
+            my $method = $req->{itemid} ? 'editevent' : 'postevent';
+            my $res = LJ::Protocol::do_request($method, $req, \$prot_err, { 'nomod'=>1, 
                                                                                 'noauth'=>1, 
                                                                                 'use_custom_time'=> 0, });
             if ($res) { # succeeded

Tags: afedorov, bml, livejournal, red_alf
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