Note: There are a few cases of duplicates in user autocompletion which are being worked on.

CSV export gives resolution and status in English

RESOLVED FIXED in Bugzilla 3.0

Status

()

Bugzilla
Query/Bug List
--
minor
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: Yann, Assigned: Emmanuel Seyman)

Tracking

Bugzilla 3.0
Bug Flags:
approval +
approval3.0 +

Details

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
Build Identifier: 

When changing the label of status and resolution in field-descs.tmp.html, the HTMLbuglist is displaying the new labels, while the CSV buglist is displaying the DB labels.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
(Reporter)

Updated

10 years ago
Version: unspecified → 3.0
(Reporter)

Comment 1

10 years ago
My fix:
Add: [% PROCESS "global/field-descs.none.tmpl" %]

      [% IF column == "opendate" OR column == "changeddate" %]
        [% rawcolumn = column.replace("date", "time") %]
        [% bug.$column = date.format(bug.$rawcolumn, "%Y-%m-%d %H:%M:%S") %]
      [% ELSIF column == 'bug_status' %]
        [% bug.$column = status_descs.${bug.$column} %]
      [% ELSIF column == 'resolution' %]
        [%- bug.$column = get_resolution(bug.$column) %]
      [% END %]
(Assignee)

Comment 2

10 years ago
This affects 2.22 as well (well, tip of the 2.22 branch in any case).
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 3

10 years ago
Yann, attach a patch if you want it implemented.
(Assignee)

Comment 4

10 years ago
Taking
Status: NEW → ASSIGNED

Updated

10 years ago
Assignee: query-and-buglist → eseyman
Status: ASSIGNED → NEW

Updated

10 years ago
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
(Assignee)

Comment 5

10 years ago
Taking, I said
Status: NEW → ASSIGNED
(Assignee)

Comment 6

10 years ago
Created attachment 273936 [details] [diff] [review]
Patch to the 2.22 branch
Attachment #273936 - Flags: review?
(Assignee)

Comment 7

10 years ago
Created attachment 273937 [details] [diff] [review]
Patch to the 3.0 branch
Attachment #273937 - Flags: review?
(Assignee)

Comment 8

10 years ago
Created attachment 273938 [details] [diff] [review]
Patch to the CVS tip
Attachment #273938 - Flags: review?

Comment 9

10 years ago
Comment on attachment 273938 [details] [diff] [review]
Patch to the CVS tip

> [% PROCESS global/variables.none.tmpl %]
>+[% PROCESS "global/field-descs.none.tmpl" %]

FYI, field-descs.none.tmpl automatically calls variables.none.tmpl, so you only can remove the call to variables.none.tmpl here.

Comment 10

10 years ago
Comment on attachment 273938 [details] [diff] [review]
Patch to the CVS tip

> [% PROCESS global/variables.none.tmpl %]
>+[% PROCESS "global/field-descs.none.tmpl" %]

Remove [% PROCESS global/variables.none.tmpl %] on checkin. r=LpSolit
Attachment #273938 - Flags: review? → review+

Comment 11

10 years ago
Comment on attachment 273936 [details] [diff] [review]
Patch to the 2.22 branch

2.22 is restricted to security bugs only.
Attachment #273936 - Attachment is obsolete: true
Attachment #273936 - Flags: review?

Comment 12

10 years ago
Comment on attachment 273937 [details] [diff] [review]
Patch to the 3.0 branch

> [% PROCESS global/variables.none.tmpl %]
>+[% PROCESS "global/field-descs.none.tmpl" %]

Same comment as above, [% PROCESS global/variables.none.tmpl %] can go away. r=LpSolit
Attachment #273937 - Flags: review? → review+

Updated

10 years ago
Severity: normal → minor
Flags: approval3.0+
Flags: approval+

Comment 13

10 years ago
tip:

Checking in template/en/default/list/list.csv.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/list/list.csv.tmpl,v  <--  list.csv.tmpl
new revision: 1.6; previous revision: 1.5
done

3.0:

Checking in template/en/default/list/list.csv.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/list/list.csv.tmpl,v  <--  list.csv.tmpl
new revision: 1.5.4.1; previous revision: 1.5
done
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.