diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-31 08:45:51 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-31 08:45:51 +0200 |
commit | a8a3aa17cec8fbbfe3e4d4cf4df0331e0b5b80d8 (patch) | |
tree | d35c1cc110ed42e6630ff59ab8af78962f889f22 /lib/Travelynx/Controller | |
parent | 341665c79bde28129d6ca78abf60a04aed6e49e7 (diff) |
Perform undo by deleting the erroneous database entry
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 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 => { |