Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#3488 closed Bug (fixed)

Widgetized dashboard widgets empty if more than one segment is used

Reported by: mwallenberg Owned by:
Priority: major Milestone: 1.9.2 - Piwik 1.9.2
Component: Core Keywords: segment, dashboard, custom variables
Cc: Sensitive: no

Description

If you view the dashboard in a iFrame, all widgets are empty ("There is no data for this report.") if more than one segment is passed in the query.

This means that it is not possible to filter the dashboard with a custom variable, since this requires passing two segments.

Steps to reproduce:

  • Export the dashboard into an iframe.
  • Add a single segment in the query URL, and note that the dasboard filters as expected. Example of a segment to add: &segment=browserName==FF
  • Add an additional segment using the AND operator (";"). Note that all widgets are now empty. Example of segment to add: &segment=browserName==FF;operatingSystem=WI7

Change History (8)

comment:2 Changed 18 months ago by mwallenberg

I don't know if it was working in earlier versions. I updated straight from 1.8.2 (where the custom variable had no effect), so I'm not sure about versions between 1.8.2 and 1.9.1.

Last edited 18 months ago by mwallenberg (previous) (diff)

comment:3 Changed 18 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [7356]) Fixes #3488 - Thanks for the useful bug report @mwallenberg
apply patch then delete piwik/tmp/assets/*

comment:4 Changed 18 months ago by mwallenberg

  • Resolution fixed deleted
  • Status changed from closed to reopened

Hi again, Matt,

Thanks for looking into this so quickly. I applied the patch you linked to directly against 1.9.1, and deleted all files in piwik/tmp/assets/ but the issue remains. I used the following segment to test:

&segment=browserName==FF;operatingSystem==WI7

Do I have to install the latest dev version to get other patches that this fix depends on?

comment:6 Changed 18 months ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:7 Changed 18 months ago by mwallenberg

Indeed, that fixes the problem. Thank you again!

comment:8 Changed 18 months ago by matt (mattab)

  • Summary changed from Widgetized dashboard widgets empty if more than one segment is used (breaks custom variables) to Widgetized dashboard widgets empty if more than one segment is used
Note: See TracTickets for help on using tickets.