Remove required state of description

pull/4445/head
Oliver Günther 9 years ago
parent 6498a1115f
commit 14c858a6c3
  1. 3
      lib/api/v3/work_packages/schema/work_package_schema_representer.rb
  2. 3
      spec/features/work_packages/details/inplace_editor/description_editor_spec.rb
  3. 2
      spec/lib/api/v3/work_packages/schema/work_package_schema_representer_spec.rb

@ -120,7 +120,8 @@ module API
max_length: 255
schema :description,
type: 'Formattable'
type: 'Formattable',
required: false
schema :start_date,
type: 'Date',

@ -40,7 +40,8 @@ describe 'description inplace editor', js: true, selenium: true do
field.expect_state_text 'Click to enter description...'
field.activate!
field.expect_save_button(enabled: false)
# An empty description is also allowed
field.expect_save_button(enabled: true)
field.set_value 'A new hope ...'
field.expect_save_button(enabled: true)
field.submit_by_click

@ -175,7 +175,7 @@ describe ::API::V3::WorkPackages::Schema::WorkPackageSchemaRepresenter do
let(:path) { 'description' }
let(:type) { 'Formattable' }
let(:name) { I18n.t('attributes.description') }
let(:required) { true }
let(:required) { false }
let(:writable) { true }
end
end

Loading…
Cancel
Save