журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12386: LJSUP-13158: Add reserved and blocking b...

Committer: nnikulochkina
LJSUP-13158: Add reserved and blocking balance to acctedit.bml
U   trunk/htdocs/admin/accounts/acctedit.bml
Modified: trunk/htdocs/admin/accounts/acctedit.bml
===================================================================
--- trunk/htdocs/admin/accounts/acctedit.bml	2012-07-31 19:29:38 UTC (rev 12385)
+++ trunk/htdocs/admin/accounts/acctedit.bml	2012-08-01 07:42:58 UTC (rev 12386)
@@ -300,8 +300,10 @@
             
             foreach my $it (@{$res->{items}}) {
                 my $account = LJ::Pay::Wallet::Account->load($u->id,$it->{id});
-                eval {$account->revoke};
-                die "$@" if $@;
+                my $err;
+                eval {$account->revoke(\$err,{release_blockings=>1})};
+                die $@ if $@;
+                die $err if $err;
             }
         }
 

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