Project

General

Profile

Actions

Defect #16739

closed

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

Added by Ruud Senden almost 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 #1

Updated by Jean-Philippe Lang almost 10 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.

Actions #2

Updated by Jean-Philippe Lang almost 10 years ago

  • Status changed from Resolved to Closed

Merged.

Actions

Also available in: Atom PDF