I've set up a couple of custom profile fields which I access in php using $USER->field_id where field_id is the unique name chosen when creating the field.
This works ok, but when the user changes the value of this field, php doesn't seem to see the change until the user logs out and back in again. Why is this happening or (better) how can I make the change instant on the next page load.
For testing at the minute, I've just got it printing out the value of the field at the top of the page so I can check the value.
Thanks
Craig
Hello,
This bug has been signaled on the tracker as http://tracker.moodle.org/browse/MDL-18964 and seems not yet fixed. I gave a patch for file user/profile/lib.php for Moodle 1.9.3...
Please vote for it
Cheers.
This bug has been signaled on the tracker as http://tracker.moodle.org/browse/MDL-18964 and seems not yet fixed. I gave a patch for file user/profile/lib.php for Moodle 1.9.3...
Please vote for it
Cheers.