Rewrite AbstractWorkPackage#set_attrbiutes

pull/4945/head
Oliver Günther 8 years ago
parent 4fb23c957b
commit e3f1b42df3
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      spec/support/pages/abstract_work_package.rb
  2. 1
      spec/support/work_packages/work_package_field.rb

@ -130,7 +130,7 @@ module Pages
def set_attributes(key_value_map, save: true)
key_value_map.each_with_index.map do |(key, value), index|
field = work_package_field key
field.activate_edition
field.activate!
field.set_value value
# select fields are saved on change
@ -151,6 +151,8 @@ module Pages
else
WorkPackageField.new page, key
end
elsif key == :description
WorkPackageTextAreaField.new page, key
else
WorkPackageField.new page, key
end

@ -160,6 +160,7 @@ class WorkPackageField
:project,
:status,
:type,
:version,
:category
:select
else

Loading…
Cancel
Save