diff options
author | Brad Embree <brad@bestpractical.com> | 2022-04-30 00:02:27 +0300 |
---|---|---|
committer | Brad Embree <brad@bestpractical.com> | 2022-04-30 00:02:27 +0300 |
commit | 772015918b612ef58fe00990c76a7c63cf1bbd47 (patch) | |
tree | bf1dbed6347b5d3fe686644e4f50ad4e58d06e05 | |
parent | 2a99722454ec06814c291bd6a9491d71bfd0c78a (diff) |
Add an AfterWipeout callback to Shredder5.0/add-shredder-afterwipeout-callback
Used by RT::Site::Symas for returning back to the Ticket display page after clicking a link to shred an attachment.
See ticket 246765.
-rw-r--r-- | share/html/Admin/Tools/Shredder/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/html/Admin/Tools/Shredder/index.html b/share/html/Admin/Tools/Shredder/index.html index fc07998173..d4e5789def 100644 --- a/share/html/Admin/Tools/Shredder/index.html +++ b/share/html/Admin/Tools/Shredder/index.html @@ -152,6 +152,8 @@ if( $Plugin && $Wipeout ) { { # use additional block({}) to effectively exit blo $catch_non_fatals->() && last if $@; push @{ $messages{Success} }, loc('objects were successfuly removed'); + + $m->callback(CallbackName => 'AfterWipeout', Actions => $messages{Success}, ARGSRef => \%ARGS); } } if( $Plugin && ( $Search || $Wipeout ) ) { { # use additional block({}) to effectively exit block on errors |