[Rt-commit] rtir branch, 2.9/show-more-custom-fields-when-searching, created. 3.0.0rc1-49-g8844818
Kevin Falcone
falcone at bestpractical.com
Wed Apr 10 12:14:08 EDT 2013
The branch, 2.9/show-more-custom-fields-when-searching has been created
at 8844818abb9cc34c98e992c71326474c0e6f6a37 (commit)
- Log -----------------------------------------------------------------
commit 8844818abb9cc34c98e992c71326474c0e6f6a37
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Apr 10 12:10:37 2013 -0400
A quick pass at showing Constituency and other CFs on the new search page
This works by shoving the default RTIR queues into the 'applied queues'
list when using RTIR/Search/ unless you've already limited to a Queue.
This will limit the owners dropdown as well as showing all applied CFs
without picking any Queues.
This needs more work to handle the Blocks case, and it also exposes some
of the implementation because it shows the two Customer CFs, one applied
to Investigations and another on Incidents.
diff --git a/html/RTIR/Search/index.html b/html/RTIR/Search/index.html
index e2f2e3d..3a260bf 100644
--- a/html/RTIR/Search/index.html
+++ b/html/RTIR/Search/index.html
@@ -63,6 +63,11 @@ my %query_state = $m->comp('Elements/ProcessQuery',
ResultPage => $ResultPage,
);
+unless ( keys %{$query_state{queues}} ) {
+ # needs a Blocks unless turned off check to do this, and a bunch of testing
+ $query_state{queues} = {map { $_ => 1 } ('Incidents','Incident Reports','Investigations')};
+}
+
my @results = @{ delete $query_state{'results'} };
</%INIT>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list