[Rt-commit] r2211 - in RT-View-Tree: . html/Search lib/RT/View

jesse at bestpractical.com jesse at bestpractical.com
Thu Feb 10 13:56:33 EST 2005


Author: jesse
Date: Thu Feb 10 13:56:32 2005
New Revision: 2211

Modified:
   RT-View-Tree/   (props changed)
   RT-View-Tree/META.yml
   RT-View-Tree/html/Search/Tree.html
   RT-View-Tree/lib/RT/View/Tree.pm
Log:
 r2302 at hualien (orig r300):  jesse | 2004-09-17T19:28:33.531109Z
  r10288 at tinbook:  jesse | 2004-09-17T19:27:01.329295Z
  Updates based on new customer requirements
 


Modified: RT-View-Tree/META.yml
==============================================================================
--- RT-View-Tree/META.yml	(original)
+++ RT-View-Tree/META.yml	Thu Feb 10 13:56:32 2005
@@ -1,5 +1,5 @@
 name: RT-View-Tree
-version: 0.8
+version: 0.9
 abstract: RT View-Tree Extension
 license: unknown
 distribution_type: module

Modified: RT-View-Tree/html/Search/Tree.html
==============================================================================
--- RT-View-Tree/html/Search/Tree.html	(original)
+++ RT-View-Tree/html/Search/Tree.html	Thu Feb 10 13:56:32 2005
@@ -13,6 +13,16 @@
 </%ARGS>
 <%init>
 
+unless ($TreeviewMagic) {
+    unless (defined $ShowChildren) {
+        $ShowChildren = 1;
+    }
+    unless (defined $ShowDependencies) {
+    $ShowDependencies = 1;
+    }
+}
+
+
 # {{{ Generic setup
 
 my $title = loc('Tree view');
@@ -107,7 +117,7 @@
         @_
     );
 
-   return if ( $args{'Depth'} >= $args{'MaxDepth'} );
+   return if ( $args{'Depth'} > $args{'MaxDepth'} );
 
     my $ticket      = $args{'Ticket'};
     my $TopTickets = $args{'TopTickets'};
@@ -182,16 +192,16 @@
 <input type="hidden" name="Format" value="<%$Format%>">
 <& /Elements/TitleBoxStart, title => loc('Display options') &>
 <ul>
-<li><&|/l&>Display Depth</&>: <input type=text size=3 name="MaxDepth"
+<li><&|/l&>Sublevel display depth</&>: <input type=text size=3 name="MaxDepth"
 value=<%$MaxDepth%>> 
 </li>
 %# Checkboxes have binary logic. "Off" looks like "never existed
 %# TreeviewMagic emulates trinary logic for them
 <input type="hidden" name="TreeviewMagic" value="1">
-<li><input type="checkbox" name="ShowChildren" <%($ShowChildren ||
-!$TreeviewMagic) &&
+<li><input type="checkbox" name="ShowChildren" <% $ShowChildren
+ &&
 'CHECKED'%>><&|/l&>Show children in sublevels</&></li>
-<li><input type="checkbox" name="ShowDependencies" <%($ShowDependencies|| !$TreeviewMagic) && 
+<li><input type="checkbox" name="ShowDependencies" <%$ShowDependencies&& 
 'CHECKED'%>><&|/l&>Show dependencies in sublevels</&></li>
 </ul>
 <& /Elements/Submit &>

Modified: RT-View-Tree/lib/RT/View/Tree.pm
==============================================================================
--- RT-View-Tree/lib/RT/View/Tree.pm	(original)
+++ RT-View-Tree/lib/RT/View/Tree.pm	Thu Feb 10 13:56:32 2005
@@ -1,6 +1,6 @@
 
 package RT::View::Tree;
 
-our $VERSION = '0.9';
+our $VERSION = '1.0';
 
 1;


More information about the Rt-commit mailing list