Project

General

Profile

Actions

Defect #16739

closed

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

Added by Ruud Senden about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
High
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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.

Actions

Also available in: Atom PDF