Closed
Bug 71296
Opened 24 years ago
Closed 24 years ago
enter_bug.cgi: Error in if clause
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
People
(Reporter: anowak, Assigned: justdave)
Details
If a product has no project defined yet, an (unnecessary )error will be
displayed:
Argument "" isn't numeric in eq at /bugtest/enter_bug.cgi line 241 (#1) (W) The
indicated string was fed as an argument to an
operator that expected a numeric value instead. If you're fortunate the message
will identify which operator was so unfortunate.
[Thu Mar 8 14:43:27 2001] enter_bug.cgi: Argument "" isn't numeric in eq at
/bugtest/enter_bug.cgi line 241.
The reason is in the comparism of the if statement. Being not a perl export I
think line 241
if (0 == $::components{$product}) {
should be
if ( !$::components{$product} ) {
or
if ( $::components{$product} eq "" ) {
Reporter | ||
Comment 1•24 years ago
|
||
There must be at least one componend defined for a product. This should be
checked when adding a new product.
Comment 2•24 years ago
|
||
*** This bug has been marked as a duplicate of 65399 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 3•24 years ago
|
||
moving to Bugzilla product
reassign to default owner/qa for INVALID/WONTFIX/WORKSFORME/DUPLICATE
Assignee: tara → justdave
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: Bugzilla 2.11 → unspecified
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•