Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, 4.0/skip-empty-values-in-email-completion, created. rt-4.0.5-117-g3c678fc

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


sunnavy at bestpractical

Apr 15, 2012, 2:16 AM

Post #1 of 1 (121 views)
Permalink
rt branch, 4.0/skip-empty-values-in-email-completion, created. rt-4.0.5-117-g3c678fc

The branch, 4.0/skip-empty-values-in-email-completion has been created
at 3c678fc8928385d36fded38eea6ee392b06ae647 (commit)

- Log -----------------------------------------------------------------
commit 3c678fc8928385d36fded38eea6ee392b06ae647
Author: sunnavy <sunnavy [at] bestpractical>
Date: Sun Apr 15 17:13:45 2012 +0800

skip empty values as it returns nothing in completion

see #19778

diff --git a/share/html/Helpers/Autocomplete/Users b/share/html/Helpers/Autocomplete/Users
index dbc2d88..d1dc69a 100644
--- a/share/html/Helpers/Autocomplete/Users
+++ b/share/html/Helpers/Autocomplete/Users
@@ -120,6 +120,8 @@ while ( my $user = $users->Next ) {
next if $user->id == RT->SystemUser->id
or $user->id == RT->Nobody->id;

+ next unless defined $user->$return && length $user->$return;
+
my $formatted = $m->scomp('/Elements/ShowUser', User => $user, NoEscape => 1);
$formatted =~ s/\n//g;
my $suggestion = { label => $formatted, value => $user->$return };

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.