[Rt-commit] rtir branch, 2.9-trunk, updated. 2.6.1-499-g8d2542e

Ruslan Zakirov ruz at bestpractical.com
Fri Oct 14 15:31:28 EDT 2011


The branch, 2.9-trunk has been updated
       via  8d2542ed789cfc5e2599f1461fa669258b695d24 (commit)
       via  91287f7860e02bdeb439c9039d198844fb5c51cb (commit)
       via  4a2f39e59e75b6daab9fce8f782411b9b1b91a27 (commit)
       via  fcfc5b837bfbcb084e73d4ddec0e7f7be86946d0 (commit)
       via  34b43fc888e62a6d17695a8bad152e6ee9a7ad42 (commit)
       via  1e5d7729479f2d37c0bd9459e5ac897f8d26728c (commit)
       via  d529eed1584c8852b050fc3c978c8929abdcc467 (commit)
       via  5ea0867d178f472a8a764f1166b2ce1b9c3eac89 (commit)
       via  169eae1e35268d4c64f366ba414180c0180f22f1 (commit)
       via  e080d67ad221b7f40542c49cd8c46d2e49a7a2aa (commit)
       via  513070a2f9e08e54c38c98574eb3e774e958200a (commit)
       via  d875f3c97db8ae9847b1482c0044b8c7e89f4741 (commit)
       via  ff661f51929166aeeb847c164ea6bcb2cc6a3a1a (commit)
       via  c317301e52bd528298ca00799ad2d497c86a1b04 (commit)
       via  ac7c63871715cc071f4733ac528aad523dbeeb61 (commit)
       via  218e538cd2543ae2c412b24c92de4328898a285b (commit)
       via  0902172dc373d65646cb067cd3d722cc8b9db5cf (commit)
       via  9a68ee8d11946d8d8ad10a92f5962bdfef63e53d (commit)
       via  f6c916bd8cf33cf6f129a328d556c900fa32a1a1 (commit)
       via  5f016c20eaf1eefadef96df98908be892ab97a51 (commit)
       via  26dfbaafb6ba1f8affe292f2641899fa545e894e (commit)
       via  a5aa5c9879f6f475af32d7d92de6ee485be4067a (commit)
       via  56e878d72c7e813f8d4d2bb6c06a007c59497145 (commit)
       via  eaeeb31027b46d6fd9ec2390c640d2ee3db0ca8f (commit)
       via  34ce8c8618c261434165eacff766aed44f9a7f03 (commit)
       via  0ec529fb8b6eb05d832f87bd6e6d15451a9e5a55 (commit)
       via  c2aa3b5febb33c429f2f91a99ca890aa3c5eb603 (commit)
      from  eb3a28508fc8510bd0f48f3d7bceaa24543b64b1 (commit)

Summary of changes:
 TODO.porting_over_RT4                          |   12 ---
 etc/RTIR_Config.pm                             |   51 ++++++++++
 html/NoAuth/js/jquery.uncheckable-radio-0.1.js |   72 +++++++++++++++
 html/RTIR/Create.html                          |  117 +++++++++++-------------
 html/RTIR/Display.html                         |    4 +-
 html/RTIR/Elements/AttachReports               |   18 ++--
 html/RTIR/Elements/SelectIncident              |   65 +++++++++++++
 html/RTIR/Elements/ShowIncidents               |   64 ++++++-------
 html/RTIR/Incident/Display.html                |   15 +--
 lib/RT/IR.pm                                   |   15 ++-
 lib/RT/IR/Test/Web.pm                          |    2 +-
 t/custom-fields/on-transactions.t              |    3 +-
 12 files changed, 301 insertions(+), 137 deletions(-)
 create mode 100644 html/NoAuth/js/jquery.uncheckable-radio-0.1.js
 create mode 100644 html/RTIR/Elements/SelectIncident

- Log -----------------------------------------------------------------
commit d529eed1584c8852b050fc3c978c8929abdcc467
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri Oct 14 13:44:53 2011 +0400

    replace block with IncidentChildren call

diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 4c7c157..8104b85 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -228,16 +228,8 @@ if ( $ARGS{'BulkLink'} || $Child ) {
 }
 
 # If we deleted any links, check if what we deleted from still has children
-if ( $deleted_links ) {
-    # XXX: Can we ever get here?
-    my $children = RT::Tickets->new( $session{'CurrentUser'} );
-    $children->LimitQueue( VALUE => 'Incident Reports' );
-    $children->LimitQueue( VALUE => 'Investigations' );
-    $children->LimitQueue( VALUE => 'Blocks' );
-    $children->LimitMemberOf( $id );
-    unless ( $children->Count ) {
-        push @results, loc("WARNING: Incident [_1] has no children.", $id);
-    }
+if ( $deleted_links && !RT::IR->IncidentChildren( $TicketObj )->Count ) {
+    push @results, loc("WARNING: Incident [_1] has no children.", $id);
 }
 
 if ( $ARGS{'BulkArticles'} && @SelectedTickets ) {

commit 8d2542ed789cfc5e2599f1461fa669258b695d24
Merge: d529eed 91287f7
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri Oct 14 23:31:17 2011 +0400

    Merge branch '3.0/incident-children-config' into 2.9-trunk


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


More information about the Rt-commit mailing list