sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r11400: LJSUP-10937: Fixes for templates

Committer: vtroitsky
LJSUP-10937: Fixes for templates
U   trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-02-02 14:39:12 UTC (rev 11399)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2012-02-02 16:05:55 UTC (rev 11400)
@@ -56,7 +56,7 @@
 
         my $hide_buyout = 0;
         my $owner_cancel = 0;
-
+    # TODO (refactoring) : 
         my $data_selfpromo = LJ::PersonalStats->get_selfpromo_data( { 'type' => $type } );
         foreach my $row (@$data_selfpromo) {
 
@@ -372,7 +372,7 @@
 # TODO (refactoring): Incapsulate that logic inside SelfPromo facade and the PromoObject
     $class->withdraw_object($object);
 
-    return LJ::Request->redirect("$LJ::SITEROOT/shop/selfpromo.bml");
+    return LJ::Request->redirect("$LJ::SITEROOT/shop/selfpromo.bml?type=$type");
 }
 
 1;

Tags: ljcom, pm, sunnyman, vtroitsky
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