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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
a9500662
You need to sign in or sign up before continuing.
Commit
a9500662
authored
Jul 10, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 234855: Show only products enterable by current user in edit-multiple
patch by kiko r=joel,justdave a=justdave
parent
0066e681
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
buglist.cgi
buglist.cgi
+2
-1
globals.pl
globals.pl
+11
-0
No files found.
buglist.cgi
View file @
a9500662
...
@@ -875,7 +875,8 @@ if ($dotweak) {
...
@@ -875,7 +875,8 @@ if ($dotweak) {
$vars
->
{
'dotweak'
}
=
1
;
$vars
->
{
'dotweak'
}
=
1
;
$vars
->
{
'use_keywords'
}
=
1
if
@::legal_keywords
;
$vars
->
{
'use_keywords'
}
=
1
if
@::legal_keywords
;
$vars
->
{
'products'
}
=
\
@::legal_product
;
my
@enterable_products
=
GetEnterableProducts
();
$vars
->
{
'products'
}
=
\
@enterable_products
;
$vars
->
{
'platforms'
}
=
\
@::legal_platform
;
$vars
->
{
'platforms'
}
=
\
@::legal_platform
;
$vars
->
{
'priorities'
}
=
\
@::legal_priority
;
$vars
->
{
'priorities'
}
=
\
@::legal_priority
;
$vars
->
{
'severities'
}
=
\
@::legal_severity
;
$vars
->
{
'severities'
}
=
\
@::legal_severity
;
...
...
globals.pl
View file @
a9500662
...
@@ -516,6 +516,17 @@ sub CanEnterProduct {
...
@@ -516,6 +516,17 @@ sub CanEnterProduct {
return
(
$ret
);
return
(
$ret
);
}
}
sub
GetEnterableProducts
{
my
@products
;
# XXX rewrite into pure SQL instead of relying on legal_products?
foreach
my
$p
(
@::legal_product
)
{
if
(
CanEnterProduct
(
$p
))
{
push
@products
,
$p
;
}
}
return
(
@products
);
}
#
#
# This function returns an alphabetical list of product names to which
# This function returns an alphabetical list of product names to which
# the user can enter bugs. If the $by_id parameter is true, also retrieves IDs
# the user can enter bugs. If the $by_id parameter is true, also retrieves IDs
...
...
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