Fix patch for project settings

[ci skip]
pull/6827/head
Oliver Günther 7 years ago
parent ac5040afc0
commit db4a9d1ba2
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      app/views/projects/settings/_backlogs_settings.html.erb
  2. 2
      features/step_definitions/_when_steps.rb
  3. 5
      lib/open_project/backlogs/patches/projects_controller_patch.rb

@ -68,7 +68,7 @@ See doc/COPYRIGHT.rdoc for more details.
</tr>
</thead>
<tbody>
<% for status in (@statuses || []) %>
<% for status in (Status.all || []) %>
<tr>
<td>
<%= status.name %>

@ -201,7 +201,7 @@ When /^I click on the element with class "([^"]+?)"$/ do |locator|
end
When /^I confirm the story form$/ do
find(:xpath, XPath::HTML.fillable_field('subject')).native.send_key :return
find(:css, 'input[name=subject]').native.send_key :return
step 'I wait for AJAX requests to finish'
step 'I should not see ".saving"'
end

@ -43,11 +43,6 @@ module OpenProject::Backlogs::Patches::ProjectsControllerPatch
end
module InstanceMethods
def load_project_settings
super
@statuses = Status.all
end
def project_done_statuses
selected_statuses = (params[:statuses] || []).map { |work_package_status|
Status.find(work_package_status[:status_id].to_i)

Loading…
Cancel
Save