The Customer Map view block does not display on the reports dashboard, but will render when placed in theme.

"Uncaught ReferenceError: oS is not defined" gets thrown in Chrome dev tools. Below is output from Sources.

var Dwa=oS("geomap",$e),Ewa=oS("geomap",Ze)

Comments

mglaman’s picture

Issue tags: +alpha2, +alpha2-blocker
tararowell’s picture

+subscribing
I have the same issue.

ficklecat’s picture

I think there is some sort of conflict between the other charts on the dashboard as rendering each chart individually works fine.

Not sure what the actual problem is but for anyone looking for a quick fix you can add this line to a custom module to make it appear again:

function mymodule_commerce_reports_dashboard_alter(&$info) {
  drupal_add_js("google.load('visualization', '1.0', {'packages':['controls']});", 'inline');
}
mglaman’s picture

Thank you ficklecat. I've been meaning to compare Charts to the Visualization API to see what kind of differences there are that could resolve this.

Opinion: Do you think it'd be improper to include this into the module as a "workaround" or keep this open until a further fix is discovered?

ficklecat’s picture

Well I am sure some people would not be too happy including it but I think temporarily it might be OK especially as it is not currently outputting anything at all for the alpha1 release. So I think it is better to have it working than not at this point.

mglaman’s picture

Status: Active » Needs work
StatusFileSize
new14.34 KB

Attaching patch from code submitted in #3. Does fix rendering of customer map on dashboard.

mglaman’s picture

mglaman’s picture

Re-roll of patch. Made adjustments on wrong patch branch.

mglaman’s picture

Status: Needs work » Needs review
mglaman’s picture

Status: Needs review » Needs work

This issue didn't occur on a recent Commerce site that did not have shipping profiles. This may relate to why we have to imitate twice.

mglaman’s picture

Status: Needs work » Closed (cannot reproduce)

This is fixed using the latest version of Commerce Reports & Charts