Fix #907 support more sort options in member list

This commit is contained in:
Kijin Sung 2020-12-16 21:54:47 +09:00
parent 5e572a168d
commit b6b06af336
2 changed files with 6 additions and 2 deletions

View file

@ -120,7 +120,7 @@ class memberAdminModel extends member
// Change the query id if selected_group_srl exists (for table join)
$sort_order = Context::get('sort_order');
$sort_index = Context::get('sort_index');
if(!$sort_index)
if(!$sort_index || !in_array($sort_index, ['user_id', 'email_address', 'phone_number', 'user_name', 'nick_name', 'regdate', 'last_login']))
{
$sort_index = "list_order";
}