Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
509189f0
Commit
509189f0
authored
Oct 18, 2010
by
Tiago Mello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 595569: Fixes Bugzilla::Field::ChoiceInterface->controls_visibility_of_fields
method which was causing an error when deleting a product/component. r/a=mkanat
parent
7c03516e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
ChoiceInterface.pm
Bugzilla/Field/ChoiceInterface.pm
+15
-4
No files found.
Bugzilla/Field/ChoiceInterface.pm
View file @
509189f0
...
...
@@ -110,10 +110,21 @@ sub is_static {
sub
controls_visibility_of_fields
{
my
$self
=
shift
;
$self
->
{
controls_visibility_of_fields
}
||=
Bugzilla::
Field
->
match
(
{
visibility_field_id
=>
$self
->
field
->
id
,
visibility_value_id
=>
$self
->
id
});
return
$self
->
{
controls_visibility_of_fields
};
my
$dbh
=
Bugzilla
->
dbh
;
if
(
!
$self
->
{
controls_visibility_of_fields
})
{
my
$ids
=
$dbh
->
selectcol_arrayref
(
"SELECT id FROM fielddefs
INNER JOIN field_visibility
ON fielddefs.id = field_visibility.field_id
WHERE value_id = ? AND visibility_field_id = ?"
,
undef
,
$self
->
id
,
$self
->
field
->
id
);
$self
->
{
controls_visibility_of_fields
}
=
Bugzilla::
Field
->
new_from_list
(
$ids
);
}
return
$self
->
{
controls_visibility_of_fields
};
}
sub
visibility_value
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment