[Rt-commit] rt branch, 4.0/user-autocomplete-callback, created. rt-4.0.4-148-g1b50275
Thomas Sibley
trs at bestpractical.com
Fri Dec 23 13:15:14 EST 2011
The branch, 4.0/user-autocomplete-callback has been created
at 1b502754f00ce006c580b75f5352e69a8aafdd96 (commit)
- Log -----------------------------------------------------------------
commit 1b502754f00ce006c580b75f5352e69a8aafdd96
Author: Matt Zagrabelny <mzagrabe at d.umn.edu>
Date: Thu Dec 22 15:30:37 2011 -0600
callback for user autocomplete suggestion
Signed-off-by: Thomas Sibley <trs at bestpractical.com>
diff --git a/share/html/Helpers/Autocomplete/Users b/share/html/Helpers/Autocomplete/Users
index 8ae1ae6..3b908ec 100644
--- a/share/html/Helpers/Autocomplete/Users
+++ b/share/html/Helpers/Autocomplete/Users
@@ -122,7 +122,9 @@ while ( my $user = $users->Next ) {
my $formatted = $m->scomp('/Elements/ShowUser', User => $user, NoEscape => 1);
$formatted =~ s/\n//g;
- push @suggestions, { label => $formatted, value => $user->$return };
+ my $suggestion = { label => $formatted, value => $user->$return };
+ $m->callback( CallbackName => "ModifySuggestion", suggestion => $suggestion, user => $user );
+ push @suggestions, $suggestion;
}
</%INIT>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list