Commit c36e53d3 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly…

Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims the milestone name
parent 997030e2
......@@ -167,7 +167,8 @@ sub remove_from_db {
sub _check_value {
my ($invocant, $name, $product) = @_;
trim($name) || ThrowUserError('milestone_blank_name');
$name = trim($name);
$name || ThrowUserError('milestone_blank_name');
if (length($name) > MAX_MILESTONE_SIZE) {
ThrowUserError('milestone_name_too_long', {name => $name});
}
......
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