From c61e43ab6bdd595be5b68a36bcc3a1d52b502dde Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 10 Jul 2007 21:54:36 +0000 Subject: Fixing partial commit due to update_defaults in legacy code git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1377 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/HR.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LedgerSMB/HR.pm') diff --git a/LedgerSMB/HR.pm b/LedgerSMB/HR.pm index 105a4365..2fbd297a 100644 --- a/LedgerSMB/HR.pm +++ b/LedgerSMB/HR.pm @@ -98,6 +98,9 @@ sub get_employee { sub save_employee { my ( $self, $myconfig, $form ) = @_; + $form->{employeenumber} = + $form->update_defaults( $myconfig, "employeenumber", $dbh ) + if !$form->{employeenumber}; my $dbh = $form->{dbh}; my $query; @@ -124,9 +127,6 @@ sub save_employee { $managerid *= 1; $form->{sales} *= 1; - $form->{employeenumber} = - $form->update_defaults( $myconfig, "employeenumber", $dbh ) - if !$form->{employeenumber}; $query = qq| UPDATE employee -- cgit v1.2.3