[Rt-commit] rt branch 5.0/add-shredder-afterwipeout-callback created. rt-5.0.2-193-g772015918b

BPS Git Server git at git.bestpractical.com
Fri Apr 29 21:05:17 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/add-shredder-afterwipeout-callback has been created
        at  772015918b612ef58fe00990c76a7c63cf1bbd47 (commit)

- Log -----------------------------------------------------------------
commit 772015918b612ef58fe00990c76a7c63cf1bbd47
Author: Brad Embree <brad at bestpractical.com>
Date:   Fri Apr 29 14:02:27 2022 -0700

    Add an AfterWipeout callback to Shredder
    
    Used by RT::Site::Symas for returning back to the Ticket display page after clicking a link to shred an attachment.
    
    See ticket 246765.

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

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list