Fix the alphabetFieldSearch in the UserList, #10163
This commit is contained in:
parent
6f4f5d9414
commit
d2012694dc
3 changed files with 9 additions and 10 deletions
|
|
@ -8,6 +8,7 @@
|
|||
- fixed #10141: Matrix 2.0 - Search does not check matching products
|
||||
- fixed #10077: after matrix sort can't return to alphanumeric sort
|
||||
- fixed #10138: Matrix 2.0 Links in Product Listing are broken
|
||||
- fixed #10163: User List - alphabet search field broken
|
||||
|
||||
7.7.3
|
||||
- fixed #10094: double explanation in thread help
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ sub getAlphabetSearchLoop {
|
|||
my $htmlEncodedLetter = encode_entities($letter);
|
||||
my $searchURL = "?searchExact_".$fieldName."=".$letter."%25";
|
||||
my $hasResults;
|
||||
my $users = $self->session->db->read("select userId from userProfileData where lastName like '".$letter."%'");
|
||||
my $users = $self->session->db->read("select userId from userProfileData where `$fieldName` like '".$letter."%'");
|
||||
while (my $user = $users->hashRef){
|
||||
my $showGroupId = $self->get("showGroupId");
|
||||
if ($showGroupId eq '0' || ($showGroupId && $self->isInGroup($showGroupId,$user->{userId}))){
|
||||
|
|
@ -535,7 +535,7 @@ sub view {
|
|||
my $users = $p->getPageData($paginatePage);
|
||||
foreach my $user (@$users){
|
||||
my $userObject = WebGUI::User->new($self->session,$user->{userId});
|
||||
if ($self->get('overridePublicProfile') || $userObject->profileIsViewable($userObject)){
|
||||
if ($self->get('overridePublicProfile') || $userObject->profileIsViewable()) {
|
||||
my (@profileFieldValues);
|
||||
my %userProperties;
|
||||
foreach my $profileField (@profileFields){
|
||||
|
|
|
|||
|
|
@ -123,9 +123,8 @@ be ignored. The User List will show every users profile.|,
|
|||
|
||||
|
||||
'alphabet' => {
|
||||
message => q|The alphabet that is used for the alphabet search. This is a string of comma
|
||||
seperated values|,
|
||||
lastUpdated => 1081514049
|
||||
message => q|The alphabet that is used for the alphabet search. This is a string of comma seperated values.|,
|
||||
lastUpdated => 1239725937
|
||||
},
|
||||
|
||||
'alphabet label' => {
|
||||
|
|
@ -134,9 +133,8 @@ seperated values|,
|
|||
},
|
||||
|
||||
'alphabet description' => {
|
||||
message => q|The alphabet that is used for the alphabet search. Has to be a string of comma
|
||||
seperated values|,
|
||||
lastUpdated => 1081514049
|
||||
message => q|The set of characters that are used for the alphabet search. This allows foreign character sets to be used. Has to be a string of comma seperated values.|,
|
||||
lastUpdated => 1239725940
|
||||
},
|
||||
|
||||
'alphabetSearchField' => {
|
||||
|
|
@ -151,9 +149,9 @@ seperated values|,
|
|||
|
||||
'alphabetSearchField description' => {
|
||||
message => q|Select the profile field in which the alphabet search will be done. You can disable
|
||||
the aplhapbet search function by selecting 'Disable Alphabet Search'. This will improve the performance of the
|
||||
the alphabet search function by selecting 'Disable Alphabet Search'. This will improve the performance of the
|
||||
User List.|,
|
||||
lastUpdated => 1223651066
|
||||
lastUpdated => 1239726022
|
||||
},
|
||||
|
||||
'Profile not public message' => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue