Skip to content

Commit

Permalink
Merge pull request #4 from yoshida3669/issue_6
Browse files Browse the repository at this point in the history
When copy issue page, original checklist will appear (Issue #6)
  • Loading branch information
yoshida3669 authored Apr 5, 2017
2 parents f33fb3d + 6d02be2 commit 555f29d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module IssuesControllerPatch
def build_new_issue_from_params_with_checklist
build_new_issue_from_params_without_checklist
if User.current.allowed_to?(:edit_checklists, @issue.project)
@issue.update_checklist_items(params[:check_list_items])
@issue.update_checklist_items(params[:check_list_items]) if params[:check_list_items]
end
end
end
Expand Down

0 comments on commit 555f29d

Please sign in to comment.