[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-commit
Subject:    [Rt-commit] rt 03/04: Support to pass user name as default value for autocomplete owner input
From:       sunnavy via rt-commit <rt-commit () lists ! bestpractical ! com>
Date:       2021-07-29 21:40:10
Message-ID: 20210729214007.86F7E424E6 () bps-git ! bestpractical ! com
[Download RAW message or body]

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@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@bestpractical.com.
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic