Fix undo
A non-existing account is no longer supported if it does not start with - or + but the undo plugin used the "account" named "**UNDO**".
This commit is contained in:
parent
bdb4b2ce34
commit
73e8963c2f
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ sub undo($self, $cart, $tid, @) {
|
||||||
close $out or die $!;
|
close $out or die $!;
|
||||||
if ($cart->size) {
|
if ($cart->size) {
|
||||||
rename "$filename.$$", $filename or die $!;
|
rename "$filename.$$", $filename or die $!;
|
||||||
$cart->checkout('**UNDO**');
|
$cart->checkout('-undo');
|
||||||
} else {
|
} else {
|
||||||
return ABORT, "Transaction ID '$tid' not found in undo log.";
|
return ABORT, "Transaction ID '$tid' not found in undo log.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue