projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ccea47
)
Rechnungen: vor Benutzen von SL::DB::Invoice Modul auch laden.
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Fri, 9 Oct 2015 11:06:19 +0000
(13:06 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Fri, 9 Oct 2015 11:06:19 +0000
(13:06 +0200)
Sonst gibt es eine Fehlermeldung, zumindest ohne fcgi.
bin/mozilla/is.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/is.pl
b/bin/mozilla/is.pl
index
7700fc2
..
49b0c1e
100644
(file)
--- a/
bin/mozilla/is.pl
+++ b/
bin/mozilla/is.pl
@@
-292,7
+292,10
@@
sub form_header {
my %TMPL_VAR = ();
my @custom_hiddens;
- $TMPL_VAR{invoice_obj} = SL::DB::Invoice->new(id => $form->{id})->load if $form->{id};
+ if ($form->{id}) {
+ require SL::DB::Invoice;
+ $TMPL_VAR{invoice_obj} = SL::DB::Invoice->new(id => $form->{id})->load;
+ }
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id};
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id};