Declare WP description read-only on API V3

pull/2103/head
Hagen Schink 10 years ago
parent 4bdca2ba17
commit cf9a53ad9a
  1. 2
      lib/api/v3/work_packages/work_package_representer.rb

@ -218,7 +218,7 @@ module API
property :lock_version property :lock_version
property :subject, render_nil: true property :subject, render_nil: true
property :type, render_nil: true property :type, render_nil: true
property :description, exec_context: :decorator, render_nil: true property :description, exec_context: :decorator, render_nil: true, writeable: false
property :raw_description, property :raw_description,
getter: -> (*) { description }, getter: -> (*) { description },
setter: -> (value, *) { description = value }, setter: -> (value, *) { description = value },

Loading…
Cancel
Save