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

[ljcom] r11502: LJSUP-11315: (Add ability to add extra n...

Committer: gprochaev
LJSUP-11315: (Add ability to add extra note to vgift)

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/VGift.pm
U   trunk/cgi-bin/LJ/Pay/ShopVGift.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/VGift.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/VGift.pm	2012-02-21 08:35:14 UTC (rev 11501)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/VGift.pm	2012-02-21 08:46:02 UTC (rev 11502)
@@ -110,6 +110,7 @@
     unless ($exist_giftid) {
         my $note  = $self->get_prop('vgift_note');
         my $vg = LJ::Pay::ShopVGift->new(name => $self->{subitem});
+        my $extra_notes = $vg->extra_notes() || "";
 
         ##
         ## We store the number of purchased special vgifts in user property 'vgifts_restrict'
@@ -135,7 +136,7 @@
             ( to   => $rcpt_u,
               from => $buyer_u,
               type => $self->{subitem},
-              note => $note,
+              note => $note . $extra_notes,
               anon => $self->{anon},
               expires => $vg->expire_time,
               );

Modified: trunk/cgi-bin/LJ/Pay/ShopVGift.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/ShopVGift.pm	2012-02-21 08:35:14 UTC (rev 11501)
+++ trunk/cgi-bin/LJ/Pay/ShopVGift.pm	2012-02-21 08:46:02 UTC (rev 11502)
@@ -244,6 +244,8 @@
 
 sub is_sup { my $self = shift; $self->{is_sup} }
 
+sub extra_notes { "" }
+
 ### CHARITY VGIFTS
 sub is_charity { my $self = shift; $self->{is_charity} }
 

Tags: gprochaev, 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