[Rt-devel] Patches - sorting scrip condition, action,
and template lists
Stephen Turner
sturner at MIT.EDU
Thu Dec 6 12:32:14 EST 2007
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>
More information about the Rt-devel
mailing list