emmarichardson / local_autogroup

A local plugin for Moodle 2.7 onwards which handles the dynamic creation, population and cleanup of groups on courses.
6 stars 19 forks source link

Improvement - Pining/Fixing the field used in the menu when editing the rule in course #32

Open luiggisanso opened 3 years ago

luiggisanso commented 3 years ago

Hi @emmarichardson

In the plugin settings, I have specified a default field "Groupe d'apprentissage". image

In one course, I have implemented the rule based on this field, no worries. image

When I edit the rule, the menu goes to the first field in the list which is not that I specified before. image

I've done some test (reorder from User Profile Fields, rename for alphabetic order) but nothing new. image

After link observation, this field selected in this menu corresponds to the first field that was created, but does not correspond to the field used for the rule in the context of the course. image image

Could we keep the field used for the rule by default, so that I don't have to reselect it every time I edit the rule?

Thanks.

emmarichardson commented 2 years ago

That is definitely a good idea...if you know someone that could code this please put in a pull request and I will test and merge.