Defect #19815
Bulk issue copy copies subtasks and attachments even if option is unchecked
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Issues | |||
Target version: | 2.6.6 | |||
Resolution: | Fixed | Affected version: |
Description
When I'm bulk editing issues, doesn't matter if I checked "copy subtasks" checkbox, they will be copied anyway. I guess it's because
<%= hidden_field_tag 'copy_subtasks', '0' >
<p>
<label for='copy_subtasks'><= l(:label_copy_subtasks) ></label>
<= check_box_tag 'copy_subtasks', '1', false %>
</p>
Form passes copy_subtasks parameter anyway. And in controller there's "present" check on copy_subtasks param. But both '0' and '1' value are present.
Associated revisions
Fixed that copying issues always copy subtasks and attachments even if option is unchecked (#11787).
History
#1
Updated by Jean-Philippe Lang about 7 years ago
- Subject changed from Bug in issues_controller#bulk_edit to Bulk issue copy copies subtasks and attachments even if option is unchecked
- Category set to Issues
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.6.6
- Resolution set to Fixed
Fixed in r14268, thanks for pointing this out.
#2
Updated by Jean-Philippe Lang almost 7 years ago
- Status changed from Resolved to Closed