]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 449390: "Add Product" fails with software error "Column 'defaultmilestone' cannot...
authorlpsolit%gmail.com <>
Thu, 7 Aug 2008 02:56:23 +0000 (02:56 +0000)
committerlpsolit%gmail.com <>
Thu, 7 Aug 2008 02:56:23 +0000 (02:56 +0000)
Bugzilla/Product.pm

index e0a265b69ae70e390818207eeb700e0c5315e312..febebfb0cc05b80be81f4d4c9f4494132aeb22b5 100644 (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;
 }