Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api patch) allow PATCH to set an unset field #861

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

thibaultcha
Copy link
Member

The base_dao update() method used the old entity table to build the
UPDATE query instead of the one merged with the new parameters. If a
field was previously unset, PATCH would then not set it to the new value
(because the old entity table did not have the field present).

Fix #857

The base_dao `update()` method used the old entity table to build the
UPDATE query instead of the one merged with the new parameters. If a
field was previously unset, PATCH would then not set it to the new value
(because the old entity table did not have the field present).

Fix #857
@thibaultcha thibaultcha added pr/status/needs review pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) and removed pr/status/needs review labels Jan 11, 2016
thibaultcha added a commit that referenced this pull request Jan 12, 2016
fix(api patch) allow PATCH to set an unset field
@thibaultcha thibaultcha merged commit 6befd07 into next Jan 12, 2016
@thibaultcha thibaultcha deleted the fix/incomplete-patch branch January 12, 2016 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant