[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    [Rt-devel] Patches - sorting scrip condition, action,
From:       Stephen Turner <sturner () MIT ! EDU>
Date:       2007-12-06 17:32:14
Message-ID: 6.2.3.4.2.20071206122855.04644950 () po14 ! mit ! edu
[Download RAW message or body]

RT 3.6.5 - not a bug, but a suggested minor enhancement. On the 
create/modify scrips page, these three patches order the drop-down 
lists of conditions, actions, and templates alphabetically by name. 
Once we added a bunch of new actions and conditions, we felt was a 
bit nicer to have the lists sorted, rather than having our new 
entries fall to the bottom.

Steve


diff -u share/html/Admin/Elements/SelectScripAction 
local/html/Admin/Elements/SelectScripAction
--- share/html/Admin/Elements/SelectScripAction 2007-04-24 
13:21:42.000000000 -0400
+++ local/html/Admin/Elements/SelectScripAction 2007-12-06 
12:21:22.000000000 -0500
@@ -60,7 +60,7 @@
  <%INIT>
  my $ScripActions = RT::ScripActions->new($session{'CurrentUser'});
  $ScripActions->UnLimit;
-
+$ScripActions->OrderBy(FIELD => 'Name');


  </%INIT>
diff -u share/html/Admin/Elements/SelectScripCondition 
local/html/Admin/Elements/SelectScripCondition
--- share/html/Admin/Elements/SelectScripCondition      2007-04-24 
13:21:42.000000000 -0400
+++ local/html/Admin/Elements/SelectScripCondition      2007-12-06 
12:22:31.000000000 -0500
@@ -60,7 +60,7 @@
  <%INIT>
  my $ScripConditions = RT::ScripConditions->new($session{'CurrentUser'});
  $ScripConditions->UnLimit;
-
+$ScripConditions->OrderBy(FIELD => 'Name');


  </%INIT>


diff -u share/html/Admin/Elements/SelectTemplate 
local/html/Admin/Elements/SelectTemplate
--- share/html/Admin/Elements/SelectTemplate    2007-04-24 
13:21:42.000000000 -0400
+++ local/html/Admin/Elements/SelectTemplate    2007-12-06 
12:26:12.000000000 -0500
@@ -70,9 +70,11 @@
  if ($Queue != 0) {
  $PrimaryTemplates->LimitToQueue($Queue);
  }
+$PrimaryTemplates->OrderBy(FIELD => 'Name');

  my $OtherTemplates = RT::Templates->new($session{'CurrentUser'});
  $OtherTemplates->LimitToGlobal($DefaultQueue);
+$OtherTemplates->OrderBy(FIELD => 'Name');

  </%INIT>
  <%ARGS>

_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch today. 
    Email us at sales@bestpractical.com or call us at +1 617 812 0745.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic