[Rt-commit] rt 03/04: Support to pass user name as default value for autocomplete owner input

sunnavy sunnavy at bestpractical.com
Thu Jul 29 21:40:10 UTC 2021


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 5.0/search-filter
in repository rt.

commit 43247a0631164281c07d452033c9a341be1273be
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Fri Jul 30 04:39:53 2021 +0800

    Support to pass user name as default value for autocomplete owner input
    
    Previously only user id was supported. We will need to pass user name in
    ticket search result filter.
---
 share/html/Elements/SelectOwnerAutocomplete | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/html/Elements/SelectOwnerAutocomplete b/share/html/Elements/SelectOwnerAutocomplete
index 2ffefdf258..75d61eccd9 100644
--- a/share/html/Elements/SelectOwnerAutocomplete
+++ b/share/html/Elements/SelectOwnerAutocomplete
@@ -57,7 +57,7 @@ $ValueAttribute = 'Name' unless $ValueAttribute =~ /^(?:id|Name)$/;
 
 my $value = '';
 
-if ( $Default and not $Default =~ /\D/ ) {
+if ( $Default ) {
     my $user = RT::User->new( $session{'CurrentUser'} );
     $user->Load($Default);
     $value = $user->$ValueAttribute;

-- 
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.


More information about the rt-commit mailing list