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
de1fd5b0
Commit
de1fd5b0
authored
Sep 09, 2008
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bustage due to bug 453743: I have to exclude flags related to private…
Fix bustage due to bug 453743: I have to exclude flags related to private attachments you cannot see
parent
a84d94e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Attachment.pm
Bugzilla/Attachment.pm
+3
-0
No files found.
Bugzilla/Attachment.pm
View file @
de1fd5b0
...
@@ -577,6 +577,9 @@ sub get_attachments_by_bug {
...
@@ -577,6 +577,9 @@ sub get_attachments_by_bug {
my
$flags
=
Bugzilla::
Flag
->
match
({
bug_id
=>
$bug_id
,
my
$flags
=
Bugzilla::
Flag
->
match
({
bug_id
=>
$bug_id
,
target_type
=>
'attachment'
});
target_type
=>
'attachment'
});
# Exclude flags for private attachments you cannot see.
@$flags
=
grep
{
exists
$att
{
$_
->
attach_id
}}
@$flags
;
push
(
@
{
$att
{
$_
->
attach_id
}
->
{
flags
}},
$_
)
foreach
@$flags
;
push
(
@
{
$att
{
$_
->
attach_id
}
->
{
flags
}},
$_
)
foreach
@$flags
;
$attachments
=
[
sort
{
$a
->
id
<=>
$b
->
id
}
values
%
att
];
$attachments
=
[
sort
{
$a
->
id
<=>
$b
->
id
}
values
%
att
];
}
}
...
...
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