diff options
-rw-r--r-- | Bugzilla/Product.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index e0a265b69..febebfb0c 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -347,7 +347,7 @@ sub _check_default_milestone { # Do nothing if target milestones are not in use. unless (Bugzilla->params->{'usetargetmilestone'}) { - return (ref $invocant) ? $invocant->default_milestone : undef; + return (ref $invocant) ? $invocant->default_milestone : '---'; } $milestone = trim($milestone); @@ -371,10 +371,10 @@ sub _check_milestone_url { # Do nothing if target milestones are not in use. unless (Bugzilla->params->{'usetargetmilestone'}) { - return (ref $invocant) ? $invocant->milestone_url : undef; + return (ref $invocant) ? $invocant->milestone_url : ''; } - $url = trim($url); + $url = trim($url || ''); return $url; } |