[Rt-devel] RT 3.4.2 Patch (es) - Sorting Condition/Action/Template Drop Down Lists

Stephen Turner sturner at MIT.EDU
Fri Sep 22 15:17:31 EDT 2006


Hello,

RT 3.4.2 - three small patches that will alphabetically sort the 
drop-down-list entries for Condition, Action and Template on the 
scrip create/edit page.

Steve


diff -u share/html/Admin/Elements/SelectTemplate 
local/html/Admin/Elements/SelectTemplate
--- share/html/Admin/Elements/SelectTemplate    2006-01-19 
14:09:03.000000000 -0500
+++ local/html/Admin/Elements/SelectTemplate    2006-09-22 
14:57:34.000000000 -0400
@@ -68,9 +68,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>


diff -u share/html/Admin/Elements/SelectScripAction 
local/html/Admin/Elements/SelectScripAction
--- share/html/Admin/Elements/SelectScripAction 2006-01-19 
14:09:03.000000000 -0500
+++ local/html/Admin/Elements/SelectScripAction 2006-09-22 
15:10:31.000000000 -0400
@@ -58,6 +58,7 @@
  <%INIT>
  my $ScripActions = RT::ScripActions->new($session{'CurrentUser'});
  $ScripActions->UnLimit;
+$ScripActions->OrderBy(FIELD => 'Name');


diff -u share/html/Admin/Elements/SelectScripCondition 
local/html/Admin/Elements/SelectScripCondition
--- share/html/Admin/Elements/SelectScripCondition      2006-01-19 
14:09:02.000000000 -0500
+++ local/html/Admin/Elements/SelectScripCondition      2006-09-22 
14:53:59.000000000 -0400
@@ -58,6 +58,7 @@
  <%INIT>
  my $ScripConditions = RT::ScripConditions->new($session{'CurrentUser'});
  $ScripConditions->UnLimit;
+$ScripConditions->OrderBy(FIELD => 'Name');



More information about the Rt-devel mailing list