[Rt-commit] [rtir] 03/08: Bring in the core feature to extract an article

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 5213c5da7e55bbac1f48e5580f72ada3f964546e
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Aug 15 16:29:54 2014 -0400

    Bring in the core feature to extract an article
    
    This is better than RTIR's "Create" article link which drops you into
    the Article creation page and makes you copy and paste the wording you
    liked, rather than just using the extract UI.
    The extract UI could use some love, but has existed for years.
---
 html/Callbacks/RTIR/Elements/Tabs/Privileged | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index d5bb242..b240c2c 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -282,6 +282,13 @@ if ( $request_path =~ m{^/RTIR/(?:$re_rtir_types/)?(Display|Edit|Update|Forward|
         );
     }
 
+    # TODO needs a "Can extract article into a class applied to this queue" check
+    $actions_tab->child( 'extract-article' =>
+            title => loc('Extract Article'),
+            path  => "/Articles/Article/ExtractIntoClass.html?Ticket=$id",
+    ) if $session{CurrentUser}->HasRight( Right => 'ShowArticlesMenu', Object => RT->System );
+
+
     PageMenu()->child(
         bookmark => raw_html => $m->scomp( '/Ticket/Elements/Bookmark', id => $id ),
         sort_order   => 99

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list