Commit 864ee351 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 465606: If a user doesn't have privs to change the target milestone, it gets…

Bug 465606: If a user doesn't have privs to change the target milestone, it gets set back to default - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent d66d351c
......@@ -1953,13 +1953,13 @@ sub set_product {
# just die if any of these are invalid.
$self->set_component($comp_name);
$self->set_version($vers_name);
if ($self->check_can_change_field('target_milestone', 0, 1)) {
$self->set_target_milestone($tm_name);
}
else {
if ($product_changed && !$self->check_can_change_field('target_milestone', 0, 1)) {
# Have to set this directly to bypass the validators.
$self->{target_milestone} = $product->default_milestone;
}
else {
$self->set_target_milestone($tm_name);
}
}
if ($product_changed) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment