Content
View differences
Updated by Jan Sandbrink over 12 years ago
# Reproduction
- Call the update-action on the planning-elements-controller
- trying to update the status-id fails in various scenarios:
**First scenario**
- Update using <code>status\_id</code>
- e.g. <code><planning_element><status_id>5</status_id></planning_element></code>
- The Response indicates success (HTTP 204)
- The status does not get updated
**Second scenario**
- Update using <code>planning\_element\_status\_id</code>
- e.g. <code><planning_element><planning_element_status_id>5</planning_element_status_id></planning_element></code>
- The response is HTTP 500
# Solution
Looking at the code both requests (scenarios) could be valid and at least for one the updating should work.
I would vote for <code>status\_id</code>, because it does not contain “planning\_element” (obsoloete word) and it is more concise.
- Call the update-action on the planning-elements-controller
- trying to update the status-id fails in various scenarios:
**First scenario**
- Update using <code>status\_id</code>
- e.g. <code><planning_element><status_id>5</status_id></planning_element></code>
- The Response indicates success (HTTP 204)
- The status does not get updated
**Second scenario**
- Update using <code>planning\_element\_status\_id</code>
- e.g. <code><planning_element><planning_element_status_id>5</planning_element_status_id></planning_element></code>
- The response is HTTP 500
# Solution
Looking at the code both requests (scenarios) could be valid and at least for one the updating should work.
I would vote for <code>status\_id</code>, because it does not contain “planning\_element” (obsoloete word) and it is more concise.