From 4e0c05bfd4ee90970a084100e37768cf8baef90e Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 18 Apr 2025 15:39:37 +0000 Subject: [PATCH] Merge r23678 from trunk to 5.1-stable (#41935). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23680 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/index.api.rsb | 1 + test/integration/api_test/custom_fields_test.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/views/custom_fields/index.api.rsb b/app/views/custom_fields/index.api.rsb index 9f46f89f2..d4b19d62b 100644 --- a/app/views/custom_fields/index.api.rsb +++ b/app/views/custom_fields/index.api.rsb @@ -15,6 +15,7 @@ api.array :custom_fields do api.multiple field.multiple? api.default_value field.default_value api.visible field.visible? + api.editable field.editable? values = field.possible_values_options if values.present? diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb index 0df56e59a..4fb06636e 100644 --- a/test/integration/api_test/custom_fields_test.rb +++ b/test/integration/api_test/custom_fields_test.rb @@ -37,6 +37,8 @@ class Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base end assert_select 'trackers[type=array]' assert_select 'roles[type=array]' + assert_select 'visible', :text => 'true' + assert_select 'editable', :text => 'true' end end end