Defect #13850
Unable to set custom fields for versions using the REST API
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | REST API | |||
Target version: | 2.3.2 | |||
Resolution: | Fixed | Affected version: | 2.2.0 |
Description
When uusing the REST API to update the versions (using the xml format), the custom fields are ignored if the syntax is used as described on http://www.redmine.org/projects/redmine/wiki/Rest_api
After modifying the app/model/version.rb
similar to r9783 it worked. The solution is therefore pretty simple.
I only checked to update the versions. Maybe this bug is also present for other models.
History
#1
Updated by Jean-Philippe Lang over 9 years ago
- Subject changed from Unable to set custom fields for versions using the REST API POST/PUT to Unable to set custom fields for versions using the REST API
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.3.2
- Resolution set to Fixed
Fixed in r11760 with a test, I've checked the other models.
Thanks for pointing this out.