Commit d4913056 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 449390: "Add Product" fails with software error "Column 'defaultmilestone'…

Bug 449390: "Add Product" fails with software error "Column 'defaultmilestone' cannot be null" - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 78fd5ea4
...@@ -347,7 +347,7 @@ sub _check_default_milestone { ...@@ -347,7 +347,7 @@ sub _check_default_milestone {
# Do nothing if target milestones are not in use. # Do nothing if target milestones are not in use.
unless (Bugzilla->params->{'usetargetmilestone'}) { unless (Bugzilla->params->{'usetargetmilestone'}) {
return (ref $invocant) ? $invocant->default_milestone : undef; return (ref $invocant) ? $invocant->default_milestone : '---';
} }
$milestone = trim($milestone); $milestone = trim($milestone);
...@@ -371,10 +371,10 @@ sub _check_milestone_url { ...@@ -371,10 +371,10 @@ sub _check_milestone_url {
# Do nothing if target milestones are not in use. # Do nothing if target milestones are not in use.
unless (Bugzilla->params->{'usetargetmilestone'}) { 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; return $url;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment