Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9689: LJSUP-6936 (Webmoney integration): recor...

Committer: ailyin
LJSUP-6936 (Webmoney integration): record values that evaluate to false; a workaround until a better solution is implemented in payvar_add
U   trunk/ssldocs/shop/webmoney-callback.bml
Modified: trunk/ssldocs/shop/webmoney-callback.bml
===================================================================
--- trunk/ssldocs/shop/webmoney-callback.bml	2010-11-10 10:35:07 UTC (rev 9688)
+++ trunk/ssldocs/shop/webmoney-callback.bml	2010-11-10 11:06:57 UTC (rev 9689)
@@ -122,7 +122,10 @@
             );
 
             foreach my $k (keys %payvars_map) {
-                $cart->payvar_add( $payvars_map{$k} => $form{$k} );
+                my $v = $form{$k};
+                $v = "m-$v" unless $v;
+
+                $cart->payvar_add( $payvars_map{$k} => $v );
             }
 
             $cart->mark_paid;

Tags: andy, bml, ljcom
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