Project

General

Profile

Actions

Defect #41935

open

Custom Fields API does not include "editable" attribute in the response

Added by salman mp 15 days ago. Updated 3 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

editable field is not shown in custom fields json/xml


Files

Actions #2

Updated by Go MAEDA 5 days ago

  • Tracker changed from Patch to Defect
  • Subject changed from Show "editable" attribute on CustomField list API to Custom Fields API does not include "editable" attribute in the response
  • Status changed from New to Confirmed
  • Target version set to 6.0.3

Thank you for reporting this issue.
I am setting the target version to 6.0.3.

The following patch updates the tests to detect this issue.

diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb
index 0df56e59a..ca772417a 100644
--- a/test/integration/api_test/custom_fields_test.rb
+++ b/test/integration/api_test/custom_fields_test.rb
@@ -29,6 +29,7 @@ class Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base
       assert_select 'custom_field' do
         assert_select 'name', :text => 'Database'
         assert_select 'description', :text => 'Select one of the databases'
+        assert_select 'editable', :text => 'true'
         assert_select 'id', :text => '2'
         assert_select 'customized_type', :text => 'issue'
         assert_select 'possible_values[type=array]' do
Actions #3

Updated by salman mp 4 days ago

Go MAEDA wrote in #note-2:

Thank you for reporting this issue.

The following patch updates the tests to detect this issue.

Thank you for your attention and your patch.

Actions #4

Updated by salman mp 3 days ago

Go MAEDA wrote in #note-2:

The following patch updates the tests to detect this issue.

By appling my patch, the test will be failed I guess. Because my patch only returns 'editable' field if custom_field is a UserCustomField.

Actions

Also available in: Atom PDF