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:
55a7b3b
)
Auftrags-Controller: CVars auch vor Drucken/E-Mail initialisieren
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 28 Sep 2015 20:24:04 +0000
(22:24 +0200)
committer
G. Richardson
<information@kivitendo-premium.de>
Mon, 16 Nov 2015 15:15:58 +0000
(16:15 +0100)
SL/Controller/Order.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Order.pm
b/SL/Controller/Order.pm
index
bd20669
..
cc0f57e
100644
(file)
--- a/
SL/Controller/Order.pm
+++ b/
SL/Controller/Order.pm
@@
-490,6
+490,10
@@
sub _get_unalterable_data {
#$item->active_price_source('');
#$item->active_discount_source('');
}
+
+ # autovivify all cvars that are not in the form (cvars_by_config can do it).
+ $item->cvars_by_config;
+ $item->parse_custom_variable_values;
}
}
@@
-497,11
+501,6
@@
sub _get_unalterable_data {
sub _save {
my ($self) = @_;
- # autovivify all cvars that are not in the form (cvars_by_config can do it)
- foreach my $item (@{ $self->order->items }) {
- $item->cvars_by_config;
- }
-
my $errors = [];
my $db = $self->order->db;