Defect #13850

Unable to set custom fields for versions using the REST API

Added by J├╝rgen Diez over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% 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.

Associated revisions

Revision 11760
Added by Jean-Philippe Lang over 4 years ago

Fixed: Unable to set custom fields for versions using the REST API (#13850).

Revision 11837
Added by Jean-Philippe Lang over 4 years ago

Merged r11760 from trunk (#13850).

History

#1 Updated by Jean-Philippe Lang over 4 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.

#2 Updated by Jean-Philippe Lang over 4 years ago

  • Status changed from Resolved to Closed

Merged.

Also available in: Atom PDF