[Rt-commit] rt branch, 4.4/add-argsref-to-include-article-callback, created. rt-4.4.2-229-g65c0ab4e6

? sunnavy sunnavy at bestpractical.com
Fri May 4 15:47:41 EDT 2018


The branch, 4.4/add-argsref-to-include-article-callback has been created
        at  65c0ab4e6a306e0d73d747db00df9fa6ece9b92d (commit)

- Log -----------------------------------------------------------------
commit 65c0ab4e6a306e0d73d747db00df9fa6ece9b92d
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed May 2 02:37:22 2018 +0800

    Add ARGSRef parameter to the IncludeArticle callback
    
    So we can do different stuff based on the arguments in callback

diff --git a/share/html/Articles/Elements/IncludeArticle b/share/html/Articles/Elements/IncludeArticle
index 0d217ee51..5ea0b0e7b 100644
--- a/share/html/Articles/Elements/IncludeArticle
+++ b/share/html/Articles/Elements/IncludeArticle
@@ -84,7 +84,7 @@ foreach my $arg ( keys %$parent_args ) {
         Article => $article, Ticket => $Ticket
     );
 
-    $m->callback( Article => $article, Ticket => $Ticket, formatted_article => \$formatted_article );
+    $m->callback( Article => $article, Ticket => $Ticket, formatted_article => \$formatted_article, ARGSRef => \%ARGS );
 
     if (RT->Config->Get('MessageBoxRichText',  $session{'CurrentUser'})) {
         $formatted_article =~ s/>/>/g;

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


More information about the rt-commit mailing list