Installing a site doesn't update email correctly
Bug #1761037 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
16.10 |
Fix Released
|
High
|
Unassigned | ||
17.04 |
Fix Released
|
High
|
Unassigned | ||
17.10 |
Fix Released
|
High
|
Unassigned | ||
18.04 |
Fix Released
|
High
|
Unassigned | ||
18.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
We added a bit of code that made sure that when we install a site it changes the admin email from <email address hidden> to the one supplied in all 3 places where we save email addresses - we save this directly to db.
This is ok if we then log out before going to a place in Mahara where $USER->commit() is called
But if we don't the $USER object still has <email address hidden> set so overwrites our change in the usr table.
We need to commit this change via the USER object rather than update the usr table directly
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/8769