User filter - first name not working properly

User filter - first name not working properly

by amit yadav -
Number of replies: 1

Hi,


I am using "User - First Name" filter. Initially, First Name filter shows "All" which is correct. But when I select a name from the dropdown and click Apply button, it always shows last name in the dropdown instead of the one that I have selected. However the report is correct but it creates confusion because it shows incorrect value for first name filter. Please help.


Thanks,

Amit Yadav



Average of ratings: -
In reply to amit yadav

Re: User filter - first name not working properly

by amit yadav -

I found the solution of user field problem. Type of fuserfield is set to PARAM_INT in components/filters/fuserfield/plugin.class file. Changing it to PARAM_BASE64 at the end of the file solves the issue.

$mform->setType('filter_fuserfield_'.$data->field, PARAM_BASE64);


Thanks,

Amit Yadav