summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-13 20:37:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-13 20:37:51 +0100
commitba97fd2a3ce5fffecb1dc5be62dbd370eb3235ae (patch)
tree2ef0f53a71810f8b5b07301564f9e036f8c37d6f
parent22b0e98b9cddc7721e4a95e0c007c152ba09a07f (diff)
do not insert duplicate wagongroups1.11.4
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index b13c8e2..cc0f81d 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2158,6 +2158,9 @@ sub startup {
if ($is_departure) {
$data->{wagonorder_dep} = $wagonorder;
$user_data->{wagons} = [];
+ if ( exists $user_data->{wagongroups} ) {
+ $user_data->{wagongroups} = [];
+ }
for my $group (
@{
$wagonorder->{data}{istformation}