Abe Hassan (burr86) wrote in changelog,
Abe Hassan
burr86
changelog

[livejournal] r12392: LJ::Support::load_cats returns a {spcati...

Committer: ahassan
LJ::Support::load_cats returns a {spcatid => {support row}} hashref, not the actual cat hashref itself; gotta get the row for the particular cat so that the can_close and can_perform_actions checks below work properly.

http://rt.livejournal.org/Ticket/Display.html?id=754

U   trunk/htdocs/support/actmulti.bml
Modified: trunk/htdocs/support/actmulti.bml
===================================================================
--- trunk/htdocs/support/actmulti.bml	2007-08-31 21:58:51 UTC (rev 12391)
+++ trunk/htdocs/support/actmulti.bml	2007-08-31 22:21:51 UTC (rev 12392)
@@ -12,7 +12,8 @@
     return "<?h1 $ML{'Error'} h1?> $ML{'error.invalidform'}" unless LJ::check_form_auth();
 
     my $spcatid = $POST{spcatid};
-    my $cat = LJ::Support::load_cats($spcatid);
+    my $cats = LJ::Support::load_cats($spcatid);
+    my $cat = $cats->{$spcatid};
     return "<?h1 Error h1?><?p That category doesn't exist. p?>" unless $cat;
 
     # get ids of requests

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