From 43ebbcc41b5752e054eb1d7e78f1a5de5ba275af Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 14 Mar 2007 06:05:12 +0000 Subject: DBObject::AUTOLOAD known to be broken. Moved other modules to use named arguments. for DBObject calls git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@897 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Employee.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'LedgerSMB/Employee.pm') diff --git a/LedgerSMB/Employee.pm b/LedgerSMB/Employee.pm index bf22cb45..261d9578 100644 --- a/LedgerSMB/Employee.pm +++ b/LedgerSMB/Employee.pm @@ -41,29 +41,30 @@ sub AUTOLOAD { my $AUTOLOAD = $LedgerSMB::Employee::AUTOLOAD; $AUTOLOAD =~ s/^.*:://; my $procname = "employee_$AUTOLOAD"; - $self->exec_method($procname, @_); + $self->exec_method(procname => "employee_$AUTOLOAD", args => \@_); + my @call_args; } sub save { my $self = shift; - my $hashref = shift @{$self->exec_method("employee_save")}; + my $hashref = shift @{$self->exec_method(procname => "employee_save")}; $self->merge($hashref, 'id'); } sub get { my $self = shift; - my $hashref = shift @{$self->exec_method("employee_get")}; + my $hashref = shift @{$self->exec_method(procname => "employee_get")}; $self->merge($hashref, keys %{$hashref}); } sub list_managers { my $self = shift; - $self->{manager_list} = $self->exec_method("employee_list_managers"); + $self->{manager_list} = $self->exec_method(procname => "employee_list_managers"); } sub search { my $self = shift; - $self->{search_results} = $self->exec_method("employee_search"); + $self->{search_results} = $self->exec_method(procname => "employee_search"); } 1; -- cgit v1.2.3