##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r15019:60bb7565dd84
r15119:53710d80fc88
Show More
index.api.rsb
44 lines | 1.4 KiB | text/plain | TextLexer
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.array :custom_fields do
@custom_fields.each do |field|
api.custom_field do
api.id field.id
api.name field.name
api.customized_type field.class.customized_class.name.underscore if field.class.customized_class
api.field_format field.field_format
api.regexp field.regexp
Jean-Philippe Lang
Removed default values on custom field min and max length....
r12130 api.min_length field.min_length
api.max_length field.max_length
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.is_required field.is_required?
api.is_filter field.is_filter?
api.searchable field.searchable
api.multiple field.multiple?
api.default_value field.default_value
api.visible field.visible?
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 values = field.possible_values_options
if values.present?
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.array :possible_values do
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 values.each do |label, value|
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.possible_value do
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 api.value value || label
Jean-Philippe Lang
Include value and label of possible values in custom fields API (#22745)....
r15019 api.label label
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 end
end
end
end
if field.is_a?(IssueCustomField)
Jean-Philippe Lang
Missing type=array attributes in custom fields API (#16739)....
r12834 api.array :trackers do
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 field.trackers.each do |tracker|
api.tracker :id => tracker.id, :name => tracker.name
end
end
Jean-Philippe Lang
Missing type=array attributes in custom fields API (#16739)....
r12834 api.array :roles do
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 field.roles.each do |role|
api.role :id => role.id, :name => role.name
end
end
end
end
end
end