"Undefined index" warning on account settings page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned |
Bug Description
In Mahara 1.10dev, when I go to the account settings page for a user who belongs to an institution, I see this warning at the top of the page:
[WAR] b0 (admin/
Call stack (most recent first):
log_
error(8, "Undefined index: one", "/home/
This is because we added an "id" column to the institution table, and there is a call to get_records_assoc() that uses the default '*' for the fields to use. Later code then assumes that the key of the returned array will be institution.name, when in fact it is now institution.id.
Note that this can only be replicated on a clean install of 1.10. If you upgrade to 1.10, then the "name" column will still be first.
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/3287