Bug 32398 - FIXME: Cannot create a new product without any components
FIXME: Cannot create a new product without any components
Product: Bugzilla
Classification: Community
Component: Bugzilla General (Show other bugs)
i386 Linux
medium Severity medium (vote)
: ---
: ---
Assigned To: David Lawrence
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-03-20 10:29 EST by David Lawrence
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-20 10:29:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Lawrence 2001-03-20 10:29:35 EST
When creating a new product, you cannot got back to the query page and add
components to the new product because the query page breaks with an error

Software error:
Can't use string ("") as an ARRAY ref while "strict refs" in use at
globals.pl line 502.

Need to figure out a way to add a component to a product with out

One possibility is to have GenerateVersionTable to skip component lists
that do not have one or more components from the versioncache file.
Comment 1 David Lawrence 2001-03-20 11:28:20 EST
Commented out the following code and it seems to have fixed the problem. For
some reason they had it where if the array was empty it would create the
variable as a scalar. Well this breaks in enter_bug.cgi and query.cgi because it
expects it to be a array reference.

#    foreach my $i (@list) {
#        if (!defined $::components{$i}) {
#            $::components{$i} = "";
#        }
#    }

Note You need to log in before you can comment on or make changes to this bug.