[Rt-commit] rt branch, 4.6/selectize-multiple-user-inputs, repushed
? sunnavy
sunnavy at bestpractical.com
Fri Jun 21 18:05:14 EDT 2019
The branch 4.6/selectize-multiple-user-inputs was deleted and repushed:
was c70b4815ae7e53aefced891a2eb771e7b27a8e68
now 166b5f82b6654c55d1bb2f1cc578d3ff21103422
1: 23f81caae = 1: 23f81caae Add sortable component to jQuery UI, which is needed for Selectize
2: 3428fd96b = 2: 3428fd96b Add Selectize js lib to RT
3: 222468779 = 3: 222468779 Add css to Theme.html for multiple user input bubbles
4: 2488057a8 = 4: 2488057a8 Switch to Selectize for multiple user inputs
5: 32282bb99 = 5: 32282bb99 Show labels instead of values(emails) for default values too
6: 974b288a4 = 6: 974b288a4 Disable browser autocomplete for selectize related inputs
7: 29c47233e = 7: 29c47233e Support selectize_option/selectize_item from json to customize option/item UI
8: c70b4815a ! 8: 166b5f82b Make values of fields specified in $UserSearchFields searchable in selectize
@@ -19,7 +19,7 @@
while ( my $user = $users->Next ) {
- my $suggestion = { id => $user->id, label => $user->Format, value => $user->$return };
+ my @searched_values;
-+ for my $field ( keys %{ RT->Config->Get('UserSearchFields') } ) {
++ for my $field ( sort keys %{ RT->Config->Get('UserSearchFields') } ) {
+ if ( $field =~ /^CF\.(?:\{(.*)}|(.*))$/ ) {
+ push @searched_values, $user->CustomFieldValuesAsString( $1 || $2 );
+ }
@@ -46,3 +46,21 @@
create: true,
closeAfterSelect: true,
maxItems: null,
+
+diff --git a/t/web/case-sensitivity.t b/t/web/case-sensitivity.t
+--- a/t/web/case-sensitivity.t
++++ b/t/web/case-sensitivity.t
+@@
+ require JSON;
+ is_deeply(
+ JSON::from_json( $m->content ),
+- [{id => 14, "value" => "root\@localhost","label" => "root (Enoch Root)"}]
++ [ { id => 14,
++ "value" => "root\@localhost",
++ "label" => "root (Enoch Root)",
++ "text" => join( "\n", 'root at localhost', 'root', 'Enoch Root', ),
++ }
++ ]
+ );
+ }
+
More information about the rt-commit
mailing list