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

[ljcom] r12335: LJSUP-13082: Check selfromo entry from c...

Committer: vtroitsky
LJSUP-13082: Check selfromo entry from community: shop cart item property journalid stores posterid not journalid
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-07-24 07:48:58 UTC (rev 12334)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2012-07-24 10:51:54 UTC (rev 12335)
@@ -987,8 +987,9 @@
     # Add object specific properties, if object exists (in case of non refunding cart)
     if ( my $object = $opts->{'object'} ) {
 
-        my $ownerid = $object->ownerid;
-        $it->set_prop( 'selfpromo_journalid' => $ownerid );
+      #  my $ownerid = $object->ownerid;
+        my $journalid = $object->journalid;
+        $it->set_prop( 'selfpromo_journalid' => $journalid );
 
         if ( $object->type eq PROMO_OBJECT_TYPE_ENTRY() ) {
             $it->set_prop( 'selfpromo_ditemid'   => $object->ditemid );

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