Report editor uses translated string internally and crashes

Bug #1100262 reported by Pasi Kallinen
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned

Bug Description

Report editor does not work if REPORT_CONF_BARE is translated: Cannot select folder to save the report to.

oils_rpt_report_editor.js has the following code:

    iterate(rptObject.def.select,
        function(i) {
            if(OILS_RPT_TRANSFORMS[i.column.transform].aggregate)
                hasAgg = true;
        }
    );

The value of i.column.transform is the translated value of REPORT_CONF_BARE, and the array OILS_RPT_TRANSFORMS wants the transform name "Bare" in English.

Tags: i18n reports
Changed in evergreen:
status: New → Triaged
Ben Shum (bshum)
Changed in evergreen:
importance: Undecided → Medium
status: Triaged → Confirmed
milestone: none → 2.4.0-beta
tags: added: reports
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-beta → 2.4.0-rc
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-rc → none
Ben Shum (bshum)
no longer affects: evergreen/2.2
Revision history for this message
Chris Sharp (chrissharp123) wrote :

This may or may not be the same issue, but I'm seeing this JS console error:

TypeError OILS_RPT_TRANSFORMS[par.column.transform] is undefined
oils://remote/reports/oils_report_param_editor.js, line 56

when I have selected a "substring" transform for a field. Same symptoms, my folders for saving the report definition and output are missing, as is the value of the substring I've selected.

Revision history for this message
Eva Cerninakova (ece) wrote :

I have discovered problem when testing and using Evergreen 2.5.3 and 2.6.2: if the non English locale in the staff client is used when creating a report template, it is impossible to create report from such a template. I came accross the same problem some time ago in Evergreen 2.2 and reported it as a bug 1131373 (which should be duplicate of this one - see https://bugs.launchpad.net/evergreen/+bug/1131373) .

no longer affects: evergreen/2.3
no longer affects: evergreen/2.4
Revision history for this message
Eva Cerninakova (ece) wrote :

Tested in EG 2.12 (version 0master.53150bb)
The problem still remains in Evergreen

Revision history for this message
Eva Cerninakova (ece) wrote :

I have checked this in 3.0 beta sandbox.
- In XUL client the problem is still there.
- I was not able to confirm whether the problem still persists in web staff client as currently some parts of reporter interfaces appear untranslated (including the list of sources a list o source specifiers in the report template building interface).

Revision history for this message
Eva Cerninakova (ece) wrote :

The problem has remained until 3.1 in XUL client (I was unable to test in web staff client as the list of sources and source specifier are dispayed untranslated in 3.1 web client).

However, I have checked this problem in the 3.2 beta sandbox and the templates created using Czech interface (with sources and source specifiers displayed translated to Czech properly) and I was able to create a report normally from the template and see the report output.
So I can say the bug has been resolved in 3.2 web staff client.

Revision history for this message
Remington Steed (rjs7) wrote :

I'll mark this as "Fix committed" for 3.2, since Eva's testing has mostly confirmed the timing of the fix.

Changed in evergreen:
milestone: none → 3.2-rc
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.