From b373465898535055867ce8acdea26a6518a99ebd Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 10 Nov 2008 18:58:42 +0000 Subject: Unapplying for now the drafts fix git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2384 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/DBObject.pm | 4 ++-- LedgerSMB/GL.pm | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/DBObject.pm b/LedgerSMB/DBObject.pm index dade3ab8..57f5ac6f 100644 --- a/LedgerSMB/DBObject.pm +++ b/LedgerSMB/DBObject.pm @@ -121,7 +121,7 @@ sub exec_method { $ref = $sth->fetchrow_hashref('NAME_lc'); - my $pargs = $ref->{proargnames}; + my $args = $ref->{proargnames}; my @proc_args; if ( !$ref->{proname} ) { # no such function @@ -132,7 +132,7 @@ sub exec_method { $ref->{pronargs} = 0 unless defined $ref->{pronargs}; # If the user provided args.. if (!defined $args{args}) { - @proc_args = $self->_parse_array($pargs); + @proc_args = $self->_parse_array($args); if (@proc_args) { for my $arg (@proc_args) { if ( $arg =~ s/^in_// ) { diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm index c399b1cf..22976c2d 100644 --- a/LedgerSMB/GL.pm +++ b/LedgerSMB/GL.pm @@ -564,7 +564,6 @@ sub transaction { my $results = $sth->fetchall_hashref('setting_key'); $form->{closedto} = $results->{'closedto'}->{'value'}; $form->{revtrans} = $results->{'revtrans'}->{'value'}; - #$form->{separate_duties} = $results->{'separate_duties'}->{'value'}; $sth->finish; $query = qq|SELECT g.*, d.description AS department -- cgit v1.2.3