update_record() doesn't allow for a column listed in the 'where' object to be updated
Bug #1525736 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Unassigned |
Bug Description
If I have a where object like:
stdClass Object (
[localusr] => 11
[authinstance] => 2
)
And data object like:
stdClass Object (
[remoteuse
[authinstance] => 4
[localusr] => 11
)
It will only update the remoteusername and not the authinstance as well?
The reason for this is that inside update_record() is a foreach loop to remove any data fields if they match where fields
But we probably don't need to do that.
Changed in mahara: | |
milestone: | none → 16.04.0 |
importance: | Undecided → Low |
status: | New → In Progress |
tags: | added: api dmllib refactoring |
Changed in mahara: | |
milestone: | 16.04.0 → 16.10.0 |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Actually, with postgres it will do a db write even if the values been written are the same as already existing. (unlike mysql)