summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/DBObject.pm7
-rw-r--r--LedgerSMB/Employee.pm4
2 files changed, 6 insertions, 5 deletions
diff --git a/LedgerSMB/DBObject.pm b/LedgerSMB/DBObject.pm
index beb95fb2..54b34429 100644
--- a/LedgerSMB/DBObject.pm
+++ b/LedgerSMB/DBObject.pm
@@ -68,20 +68,21 @@ sub exec_method {
die;
}
my $m_name = $ref->{proname};
+ my @call_args;
if ($args){
for my $arg (@proc_args){
if ($arg =~ s/^in_//){
print "Arg: $arg\n";
- push @proc_args, $self->{$arg};
+ push @call_args, $self->{$arg};
}
}
}
else {
- @proc_args = @_;
+ @call_args = @_;
}
print "Arg2s: @_ \n";
- $self->callproc($funcname, @proc_args);
+ $self->callproc($funcname, @call_args);
}
1;
diff --git a/LedgerSMB/Employee.pm b/LedgerSMB/Employee.pm
index 9ddbbc8f..0aa94961 100644
--- a/LedgerSMB/Employee.pm
+++ b/LedgerSMB/Employee.pm
@@ -35,10 +35,10 @@ our $VERSION = '1.0.0';
our @ISA = qw(LedgerSMB::DBObject);
-
sub AUTOLOAD {
my $self = shift;
- my $procname = "employee_$LedgerSMB::Employee::Autoload";
+ $AUTOLOAD =~ s/^.*:://;
+ my $procname = "employee_$AUTOLOAD";
$self->exec_method($procname, @_);
}