Closed Bug 71296 Opened 24 years ago Closed 24 years ago

enter_bug.cgi: Error in if clause

Categories

(Bugzilla :: Bugzilla-General, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 65399

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 "" ) {
There must be at least one componend defined for a product. This should be checked when adding a new product.
*** This bug has been marked as a duplicate of 65399 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
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
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.