Defect #16739

custom_fields.json only returns single tracker instead of array of trackers

Added by Ruud Senden almost 9 years ago. Updated over 8 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:Jean-Philippe Lang% Done:


Category:Custom fields
Target version:2.5.2
Resolution:Fixed Affected version:2.3.4


In my Redmine 2.3.4 installation, the custom_fields.json API returns only a single tracker, even when a custom field has been assigned to multiple trackers.

I managed to patch my Redmine installation to correctly return the full list of trackers for a custom field. In app/views/custom_fields/index.api.rsb, the following line:
api.trackers do
Should be changed to
api.array :trackers do

I think the same is true for the roles by the way, but since I'm not using that functionality I didn't bother to patch it.

Associated revisions

Revision 13109
Added by Jean-Philippe Lang almost 9 years ago

Missing type=array attributes in custom fields API (#16739).


#1 Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.5.2
  • Resolution set to Fixed

Fixed in r13109, thanks for pointing this out.

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

  • Status changed from Resolved to Closed


Also available in: Atom PDF