Commit a1b2e423 authored by Frank Becker's avatar Frank Becker Committed by Frédéric Buclin

Bug 676039: The XML format for bugs should include the full name of attachment creators

r/a=LpSolit
parent 2bc73c33
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
<filename>[% a.filename FILTER xml %]</filename> <filename>[% a.filename FILTER xml %]</filename>
<type>[% a.contenttype FILTER xml %]</type> <type>[% a.contenttype FILTER xml %]</type>
<size>[% a.datasize FILTER xml %]</size> <size>[% a.datasize FILTER xml %]</size>
<attacher>[% a.attacher.email FILTER email FILTER xml %]</attacher> <attacher[% IF a.attacher.name != '' %] name="[% a.attacher.name FILTER xml %]"[% END -%]>
[% a.attacher.email FILTER email FILTER xml %]</attacher>
[%# This is here so automated clients can still use attachment.cgi %] [%# This is here so automated clients can still use attachment.cgi %]
[% IF displayfields.token && user.id %] [% IF displayfields.token && user.id %]
<token>[% issue_hash_token([a.id, a.modification_time]) FILTER xml %]</token> <token>[% issue_hash_token([a.id, a.modification_time]) FILTER xml %]</token>
......
...@@ -138,6 +138,9 @@ ...@@ -138,6 +138,9 @@
isprivate (0|1) #REQUIRED isprivate (0|1) #REQUIRED
> >
<!ELEMENT attacher (#PCDATA)> <!ELEMENT attacher (#PCDATA)>
<!ATTLIST attacher
name CDATA #REQUIRED
>
<!ELEMENT attachid (#PCDATA)> <!ELEMENT attachid (#PCDATA)>
<!ELEMENT date (#PCDATA)> <!ELEMENT date (#PCDATA)>
<!ELEMENT desc (#PCDATA)> <!ELEMENT desc (#PCDATA)>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment