if (!$self->status->is_open) {
ThrowUserError('resolution_cant_clear', { bug_id => $self->id });
}
- if (Bugzilla->params->{'commentonclearresolution'}
- && $self->resolution && !$self->{added_comments})
- {
- ThrowUserError('comment_required');
- }
$self->{'resolution'} = '';
$self->_clear_dup_id;
}
default => 0
},
- {
- name => 'commentonclearresolution',
- type => 'b',
- default => 0
- },
-
{
name => 'commentonchange_resolution',
type => 'b',
musthavemilestoneonaccept => "If you are using Target Milestone, do you want to require that " _
"the milestone be set in order for a user to ACCEPT a ${terms.bug}?",
- commentonclearresolution => "If this option is on, the user needs to enter a short comment if " _
- "the ${terms.bug}'s resolution is cleared.",
-
commentonchange_resolution => "If this option is on, the user needs to enter a short " _
"comment if the resolution of the $terms.bug changes.",