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

git-svn-id: svn://10.0.0.236/trunk@253405 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com 2008-08-06 21:56:23 +00:00
parent 3a7a4864ed
commit 4957ccad73

View File

@ -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;
}