wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9435: LJSUP-6651. statushistory page shows wro...

Committer: gprochaev
LJSUP-6651. statushistory page shows wrong information

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon.pm
U   trunk/cgi-bin/LJ/Widget/IPPU/UserHeadSmsPay.pm
U   trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon.pm	2010-08-30 03:03:10 UTC (rev 9434)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon.pm	2010-08-30 03:17:50 UTC (rev 9435)
@@ -516,6 +516,10 @@
     my $new_size = $exp->{'size'};
 
     my ($item, $subitem, $qty) = ($self->{item}, $self->{subitem}, $self->{qty});
+
+    ## Hack for userheads
+    $item = $subitem if $item eq 'userhead';
+
     my $userid = LJ::want_userid($u);
 
     # if $qty is > 100, then we assume it is a unixtime of when

Modified: trunk/cgi-bin/LJ/Widget/IPPU/UserHeadSmsPay.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/IPPU/UserHeadSmsPay.pm	2010-08-30 03:03:10 UTC (rev 9434)
+++ trunk/cgi-bin/LJ/Widget/IPPU/UserHeadSmsPay.pm	2010-08-30 03:17:50 UTC (rev 9435)
@@ -44,7 +44,7 @@
     die BML::ml('.error.cantbuyduetoaccountstatus')
         unless $ou->is_visible || $ou->is_memorial;
 
-    my $item = LJ::Pay::Payment::PayItem->new_memonly(item => 'userhead', subitem => 'uh-'.$post->{id}, qty => 1, amt => $uh->get_price,
+    my $item = LJ::Pay::Payment::PayItem->new_memonly(item => 'userhead', subitem => 'uh-'.$post->{id}, qty => 12, amt => $uh->get_price,
                                                       anon => ($post->{anongift} eq 'true') ? 1 : 0, rcptid => $ou->{'userid'});
     my @errs;
     my $can_be_added = $item->can_belong_to($cartobj, \@errs, undef, 'additem');

Modified: trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm	2010-08-30 03:03:10 UTC (rev 9434)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm	2010-08-30 03:17:50 UTC (rev 9435)
@@ -129,7 +129,7 @@
 
     my $it = LJ::Pay::Payment::PayItem::UserHead->new_memonly(
         subitem => LJ::Request->post_param('uh'),
-        qty     => 1,
+        qty     => 12,
         amt     => $uh->get_price (), 
         anon    => $remote ? LJ::Request->post_param('gift_anon') : 1,
         rcptid  => LJ::Request->post_param('formyself') eq '1' && $remote ? $remote->userid : $recipient->userid,

Tags: ljcom, pm, wisest-owl
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