From 86bc3cfad9b7f7b3682277a19ec5a7aa3fbd8d93 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 6 Apr 2016 14:26:17 +0200 Subject: [PATCH] CVar: Shipto-CVars beim Clonen mit clonen --- SL/DB/Shipto.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/DB/Shipto.pm b/SL/DB/Shipto.pm index a0580e37f..99a4036a9 100644 --- a/SL/DB/Shipto.pm +++ b/SL/DB/Shipto.pm @@ -60,7 +60,8 @@ sub clone { grep { !m{^ (?: itime | mtime | shipto_id | trans_id ) $}x } map { $_->name } @{ $self->meta->columns }), - module => $module, + module => $module, + custom_variables => [ map { $_->clone_and_reset } @{ $self->custom_variables } ], ); return $new_shipto; -- 2.20.1