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

[ljcom] r8320: LJSUP-5661

Committer: gprochaev
LJSUP-5661

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Boolean.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Boolean.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Boolean.pm	2010-03-19 10:07:55 UTC (rev 8319)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Boolean.pm	2010-03-22 06:05:15 UTC (rev 8320)
@@ -86,7 +86,9 @@
 sub validate_user_input {
     my ($self, $cartobj, $errs_ref, $warn_ref) = @_;
 
-    return $self->is_valid_bool_bonus(0);
+    my $is_rec = $cartobj && $cartobj->{forwhat} eq 'recbill' ? 1 : 0;
+
+    return $self->is_valid_bool_bonus($is_rec);
 }
 
 # fill 'amt', and, may be, 'qty' field

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