From d4913056dbbbbdb236b1cfb0924205e08ae11260 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 7 Aug 2008 02:56:23 +0000 Subject: Bug 449390: "Add Product" fails with software error "Column 'defaultmilestone' cannot be null" - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Product.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Bugzilla') 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; } -- cgit v1.2.3-24-g4f1b