X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FShowCustomFieldWikitext;h=7f38d46951b550428b4972c0e857d06de08b1e78;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=337606139354f53c5350659ce11817e4d1e4271b;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Elements/ShowCustomFieldWikitext b/rt/share/html/Elements/ShowCustomFieldWikitext index 337606139..7f38d4695 100644 --- a/rt/share/html/Elements/ShowCustomFieldWikitext +++ b/rt/share/html/Elements/ShowCustomFieldWikitext @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,13 +45,21 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -% my $content = $Object->LargeContent || $Object->Content; -% $content = $m->comp('/Elements/ScrubHTML', Content => $content); -% my $base = $Object->Object->WikiBase; -% my $wiki_content = Text::WikiFormat::format( $content."\n" , {}, { extended => 1, absolute_links => 1, implicit_links => RT->Config->Get('WikiImplicitLinks'), prefix => $base} ); <%$wiki_content|n%> <%init> +my $content = $Object->LargeContent || $Object->Content; +$content = $m->comp('/Elements/ScrubHTML', Content => $content); +my $base = $Object->Object->WikiBase; +my %wiki_args = ( + extended => 1, + absolute_links => 1, + implicit_links => RT->Config->Get('WikiImplicitLinks'), + prefix => $base, +); +$m->callback( CallbackName => 'WikiFormatArgs', ARGSRef => \%ARGS, WikiArgsRef => \%wiki_args, ContentRef => \$content); + use Text::WikiFormat; +my $wiki_content = Text::WikiFormat::format( $content."\n" , {}, { %wiki_args } ); <%ARGS> $Object