[Rt-commit] [rtir] 02/08: Don't offer Create/Link options
Kevin Falcone
falcone at bestpractical.com
Mon Aug 18 12:26:08 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/clean-up-articles-code
in repository rtir.
commit 11188c74aaa65f5133485a20ed99f2211d8ef187
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Aug 15 16:19:34 2014 -0400
Don't offer Create/Link options
Link was broken (didn't work after it was moved to work on things other
than Incidents) and Create is silly since it doesn't even let you
leverage core's Extract Article UI.
---
html/RTIR/Elements/ShowArticles | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/html/RTIR/Elements/ShowArticles b/html/RTIR/Elements/ShowArticles
index 48f3af1..4a2de37 100644
--- a/html/RTIR/Elements/ShowArticles
+++ b/html/RTIR/Elements/ShowArticles
@@ -48,7 +48,6 @@
<&| /Widgets/TitleBox,
title => loc("Articles"),
title_href => RT->Config->Get('WebPath') ."/RTIR/Advanced.html?id=".$id,
- titleright_raw => $box_actions,
title_class => 'inverse',
class => 'ticket-info-articles',
&>
@@ -75,16 +74,4 @@ my $format = q{
__Summary__,
};
-my $box_actions = '';
-if ( $Ticket->CurrentUserHasRight('ModifyTicket') ) {
- my $web_path = RT->Config->Get('WebPath');
- my $qs = $m->comp("/Elements/QueryString",
- "RefersTo-new" => "t:$id",
- next => $web_path."/RTIR/Display.html?id=$id"
- );
- $box_actions = join ' 'x3,
- qq{<a href="$web_path/Articles/Article/PreCreate.html?$qs">}. loc('Create') .q{</a>},
- qq{<a href="$web_path/RTIR/Link/Articles.html?id=$id">}. loc('Link') .q{</a>},
- ;
-}
</%INIT>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list