summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-31 08:45:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-03-31 08:45:51 +0200
commita8a3aa17cec8fbbfe3e4d4cf4df0331e0b5b80d8 (patch)
treed35c1cc110ed42e6630ff59ab8af78962f889f22 /lib/Travelynx/Controller/Traveling.pm
parent341665c79bde28129d6ca78abf60a04aed6e49e7 (diff)
Perform undo by deleting the erroneous database entry
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 3f5a181..c3ce11e 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -117,7 +117,7 @@ sub log_action {
}
}
elsif ( $params->{action} eq 'undo' ) {
- my $error = $self->undo;
+ my $error = $self->undo( $params->{undo_id} );
if ($error) {
$self->render(
json => {