[Rt-commit] rtir branch, 4.0/new-search-organization, created. 4.0.0rc1-9-gabf4f19

Shawn Moore shawn at bestpractical.com
Thu Jun 30 19:01:14 EDT 2016


The branch, 4.0/new-search-organization has been created
        at  abf4f19662da1fd2a10583b3386748c3ddaee5a8 (commit)

- Log -----------------------------------------------------------------
commit abf4f19662da1fd2a10583b3386748c3ddaee5a8
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Thu Jun 30 22:52:03 2016 +0000

    Organize RTIR better in RT at a Glance / dashboard queries editing
    
        See RT branch 4.4/search-select

diff --git a/html/Callbacks/RTIR/Widgets/SearchSelection/Default b/html/Callbacks/RTIR/Widgets/SearchSelection/Default
new file mode 100644
index 0000000..ebee1b2
--- /dev/null
+++ b/html/Callbacks/RTIR/Widgets/SearchSelection/Default
@@ -0,0 +1,79 @@
+%# BEGIN BPS TAGGED BLOCK {{{
+%#
+%# COPYRIGHT:
+%#
+%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC
+%#                                          <sales at bestpractical.com>
+%#
+%# (Except where explicitly superseded by other copyright notices)
+%#
+%#
+%# LICENSE:
+%#
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%#
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%#
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+%# 02110-1301 or visit their web page on the internet at
+%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+%#
+%#
+%# CONTRIBUTION SUBMISSION POLICY:
+%#
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%#
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%#
+%# END BPS TAGGED BLOCK }}}
+<%ARGS>
+$sections
+</%ARGS>
+<%INIT>
+for my $i (0 .. $#$sections) {
+    next unless $sections->[$i]->{id} eq 'components';
+
+    my (@rt_items, @rtir_items);
+    for my $item (@{ $sections->[$i]->{items} }) {
+        if ($item->{name} =~ m{^/RTIR/Elements/(.*)}) {
+            $item->{label} = loc($1);
+            push @rtir_items, $item;
+        }
+        else {
+            push @rt_items, $item;
+        }
+    }
+
+    # remove RTIR items from core components section
+    @{ $sections->[$i]->{items} } = @rt_items;
+
+    # add new RTIR components section after core components
+    my $rtir_components = {
+        id    => 'rtir',
+        label => loc('RTIR'),
+        items => \@rtir_items,
+    };
+
+    splice @$sections, $i+1, 0, $rtir_components;
+    last;
+}
+</%INIT>

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


More information about the rt-commit mailing list