moodle-an-hochschulen / moodle-local_profilecohort

Moodle plugin which lets admins manage cohort memberships based on users' custom profile fields
GNU General Public License v3.0
23 stars 19 forks source link

Rules do not work correctly if the user profile field is numerical #30

Open rca19 opened 4 years ago

rca19 commented 4 years ago

I had an issue in my set of rules with a user field that had one-digit numbers as values (standing for the semester number - like 1, 2, 3 ...). All the rule sets (two or three rules connected with AND) that had this field gave incorrect results or just no results (empty sets). I finally resolved the problem changing numerical values to textual representation (like 2 -> 'two'). Now all the rule sets give correct results. As a side effect, an error was generated when the first value from the pull-down list (of numerical values) was selected, preventing from creating the rule. I am on Moodle 3.8.1, PHP 7.4, ArchLinux system.

abias commented 1 year ago

Hi @rca19 ,

I am sorry that your bug report remained unhandled up to now.

I would like to understand if this is still an issue for you with the latest releases of this plugins on Moodle 4. Would you be able to test it again? And if you still encounter an error, please submit detailled steps to reproduce which cover the information what kind of user profile field you are creating, what content this field contains for a given user and what error message you are getting.

Thanks, Alex