summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Milestone.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Milestone.pm b/Bugzilla/Milestone.pm
index 7a0a81a42..dda04c4f8 100644
--- a/Bugzilla/Milestone.pm
+++ b/Bugzilla/Milestone.pm
@@ -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});
}