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
f7b63bd7
Commit
f7b63bd7
authored
Jul 10, 2005
by
bugzilla%glob.com.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 297870: attachments table/list should show attachment creator
Patch by Byron Jones <bugzilla@glob.com.au> r=LpSolit,a=justdave
parent
a6ebccf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
Attachment.pm
Bugzilla/Attachment.pm
+5
-2
list.html.tmpl
template/en/default/attachment/list.html.tmpl
+6
-0
No files found.
Bugzilla/Attachment.pm
View file @
f7b63bd7
...
...
@@ -75,7 +75,8 @@ sub query
my
$list
=
$dbh
->
selectall_arrayref
(
"SELECT attach_id, "
.
$dbh
->
sql_date_format
(
'creation_ts'
,
'%Y.%m.%d %H:%i'
)
.
", mimetype, description, ispatch,
isobsolete, isprivate, LENGTH(thedata)
isobsolete, isprivate, LENGTH(thedata),
submitter_id
FROM attachments
WHERE bug_id = ? ORDER BY attach_id"
,
undef
,
$bugid
);
...
...
@@ -85,7 +86,9 @@ sub query
my
%
a
;
(
$a
{
'attachid'
},
$a
{
'date'
},
$a
{
'contenttype'
},
$a
{
'description'
},
$a
{
'ispatch'
},
$a
{
'isobsolete'
},
$a
{
'isprivate'
},
$a
{
'datasize'
})
=
@$row
;
$a
{
'isprivate'
},
$a
{
'datasize'
},
$a
{
'submitter_id'
})
=
@$row
;
$a
{
'submitter'
}
=
new
Bugzilla::
User
(
$a
{
'submitter_id'
});
# Retrieve a list of flags for this attachment.
$a
{
'flags'
}
=
Bugzilla::Flag::
match
({
'attach_id'
=>
$a
{
'attachid'
},
...
...
template/en/default/attachment/list.html.tmpl
View file @
f7b63bd7
...
...
@@ -24,6 +24,7 @@
<tr>
<th bgcolor="#cccccc" align="left">Attachment</th>
<th bgcolor="#cccccc" align="left">Type</th>
<th bgcolor="#cccccc" align="left">Creator</th>
<th bgcolor="#cccccc" align="left">Created</th>
<th bgcolor="#cccccc" align="left">Size</th>
[% IF show_attachment_flags %]
...
...
@@ -47,6 +48,11 @@
[% END %]
</td>
<td valign="top">
<a href="mailto:[% attachment.submitter.email FILTER html %]">
[% attachment.submitter.name || attachment.submitter.login FILTER html %]
</a>
</td>
<td valign="top">[% attachment.date FILTER time %]</td>
<td valign="top">[% attachment.datasize FILTER unitconvert %]</td>
...
...
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