diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-31 19:34:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-31 19:34:29 +0200 |
commit | 10c995e15f27f133d389a1fff29f5470dad5ce63 (patch) | |
tree | cb0af59319275f09be42027ed141218226c599ab /lib/Travelynx/Controller | |
parent | 3ce1cfc55f03ccb67b3bab13112d4594974552a4 (diff) |
journey: show error for _all_ invalid IDs
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 70b2246..d76bb9b 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -326,7 +326,7 @@ sub journey_details { checkout_id => $checkout_id, verbose => 1, ); - if ( @journeys == 0 or not $journeys[0]{completed}) { + if ( @journeys == 0 or $journeys[0]{ids}[1] != $checkout_id) { $self->render( 'journey', error => 'notfound', |