summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-08-07 04:56:23 +0200
committerlpsolit%gmail.com <>2008-08-07 04:56:23 +0200
commitd4913056dbbbbdb236b1cfb0924205e08ae11260 (patch)
treecfecbf15cc777917352f6b2a7934eb7ca39d2a79 /Bugzilla
parent78fd5ea42960091af4e0358f7b2f2aa32193516a (diff)
downloadbugzilla-d4913056dbbbbdb236b1cfb0924205e08ae11260.tar.gz
bugzilla-d4913056dbbbbdb236b1cfb0924205e08ae11260.tar.xz
Bug 449390: "Add Product" fails with software error "Column 'defaultmilestone' cannot be null" - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Product.pm6
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;
}