Skip to content

Commit

Permalink
Allow to delete last checklist item Restream#14
Browse files Browse the repository at this point in the history
  • Loading branch information
max-arnold committed Apr 10, 2017
1 parent 5c6d3e0 commit 15ca631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
map.project_module :issue_tracking do |map|
map.permission :view_checklists, {}
map.permission :done_checklists, { issue_checklist: :done }
map.permission :edit_checklists, { issue_checklist: :delete, issue_checklist: :done }
map.permission :edit_checklists, { issue_checklist: [:delete, :done] }
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_issue_checklist/hooks/model_issue_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def controller_issues_new_after_save(context={})
def save_checklist_to_issue(context, create_journal)
issue = context[:issue]
checklist_items = context[:params] && context[:params][:check_list_items]
issue.update_checklist_items(checklist_items, create_journal) if issue && checklist_items
issue.update_checklist_items(checklist_items, create_journal) if issue
end

end
Expand Down

0 comments on commit 15ca631

Please sign in to comment.