[Rt-commit] rtir branch, 4.2/rtir-configurable-linked-queue-portlets, repushed

Maureen Mirville maureen at bestpractical.com
Tue Nov 27 23:28:15 EST 2018


The branch 4.2/rtir-configurable-linked-queue-portlets was deleted and repushed:
       was 85cc9c1ef3a612864d49912b9a1b103d8d8ac32b
       now 9acc36ff5681edc60d96039c45837a63f014a9d3

1: 85cc9c1e ! 1: 9b2b37b2 Update RTIR Incidents to use a callback for displaying queue portlets
    @@ -4,8 +4,38 @@
         
         RT was updated so users can now add portlets by queue on any ticket,
         like the RTIR Incident page that displays linked Incident Reports,
    -    Investigations and Countermeasures. With this change to RT, RTIR code
    +    Investigations, and Countermeasures. With this change to RT, RTIR code
         was updated accordingly.
    +
    +diff --git a/etc/RTIR_Config.pm b/etc/RTIR_Config.pm
    +--- a/etc/RTIR_Config.pm
    ++++ b/etc/RTIR_Config.pm
    +@@
    +     },
    + );
    + 
    ++=item C<%LinkedQueuePortlets%>
    ++
    ++This config adds portlets, containing a list of linked
    ++tickets by queue (Incident Reports, Investigations,
    ++Countermeasures) to each Incident display page. By
    ++default, all link types are shown. Additional accepted
    ++link types include, 'DependsOn', 'DependedOnBy',
    ++'HasMember' (children), 'MemberOf' (parents), 'RefersTo',
    ++and 'ReferredToBy'.
    ++
    ++=cut
    ++
    ++Set( %LinkedQueuePortlets, (
    ++    Incidents   => [
    ++        { 'Incident Reports'  => [ 'All' ] },
    ++        { Investigations      => [ 'All' ] },
    ++        { Countermeasures     => [ 'All' ] },
    ++    ],
    ++));
    + 
    + =item C<%RTIR_IncidentChildren>
    + 
     
     diff --git a/html/Callbacks/RTIR/Elements/ShowLinksCollectionList/MassagePortlets b/html/Callbacks/RTIR/Elements/ShowLinksCollectionList/MassagePortlets
     new file mode 100644
    @@ -59,7 +89,6 @@
     +    if( $queue_name eq $title ) {
     +        my $lifecycle = $lifecycles{ $title };
     +        $$class = 'tickets-list-'. lc(RT::IR::TicketType( Lifecycle => $lifecycle ));
    -+        $$title_class = 'inverse';
     +        $$title_href = RT::IR->HREFTo("Incident/Children/?Lifecycle=$lifecycle&id=$id");
     +
     +    my @titleright_raw;
    @@ -92,7 +121,6 @@
     +$class => undef
     +$title_href => undef
     +$titleright_raw => undef
    -+$title_class => undef
     +</%ARGS>
     
     diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
    @@ -258,3 +286,4 @@
     -    @box_actions;
     -
     -</%INIT>
    +
-:  ------- > 2: 9acc36ff Update Web Scrubber to correspond with RT changes



More information about the rt-commit mailing list