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/PE.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LedgerSMB/PE.pm') diff --git a/LedgerSMB/PE.pm b/LedgerSMB/PE.pm index 377a1c52..fa3bcb8b 100644 --- a/LedgerSMB/PE.pm +++ b/LedgerSMB/PE.pm @@ -568,6 +568,9 @@ sub get_customer { sub save_job { my ( $self, $myconfig, $form ) = @_; + $form->{projectnumber} = + $form->update_defaults( $myconfig, "projectnumber", $dbh ) + unless $form->{projectnumber}; my $dbh = $form->{dbh}; @@ -597,9 +600,6 @@ sub save_job { ( $form->{id} ) = $dbh->selectrow_array($query); } - $form->{projectnumber} = - $form->update_defaults( $myconfig, "projectnumber", $dbh ) - unless $form->{projectnumber}; $query = qq| UPDATE project -- cgit v1.2.3