Auftrags-Controller: CVars die nicht editierbar und nicht "valid" sind, behandeln …
[kivitendo-erp.git] / SL / Controller / Order.pm
index 8393850..469eb40 100644 (file)
@@ -322,6 +322,11 @@ sub _recalc {
 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;