Custom Field Required not visible, Infinite Loop on edit.php

Custom Field Required not visible, Infinite Loop on edit.php

by Oscar Ricoy -
Number of replies: 1

Hi all, 

I have created a new custom field and I make it as REQUIRED. 

After that everytime I login i am redirected to edit profile page, but I can not see my new custom field. So I can not edit It and moodle keep me always redirected to edit profile page (also with admin user).

How can I disable o change that custom field ? I think that the only way is edditing database or something like that.


Thank you very much,

Oscar

Average of ratings: -
In reply to Oscar Ricoy

Re: Custom Field Required not visible, Infinite Loop on edit.php

by Randy Thornton -
Picture of Documentation writers
Oscar,

If you have access to the database, you can fix this as follows:

1) in the database, go to the table mdl_user_info_field
2) locate the field with the name and shortname that you want to change
3) edit the row and set value the column name "required" from 1 to 0

This will disable the required setting on that custom field and allow you to log in and correct the situation.

Of course, always make a backup copy of your database before editing, just in case.