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
Keywords: segment, dashboard, custom variables
Thanks for the report!
@mwallenberg do you know if it's a new bug in 1.9, was it working before for sure?
I can reproduce on: https://demo.piwik.org/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=3&period=week&date=yesterday&segment=country==de;browserName!=ff
the widget request becomes: https://demo.piwik.org/index.php?module=Referers&action=getSearchEngines&segment=country==debrowserName!=ff&widget=1&idSite=3&period=week&date=yesterday&token_auth=anonymous
The ; character disappeared.
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.
(In ) Fixes #3488 - Thanks for the useful bug report @mwallenberg
apply patch then delete piwik/tmp/assets/*
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:
Do I have to install the latest dev version to get other patches that this fix depends on?
it's working here correct? https://demo.piwik.org/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=3&period=day&date=2012-11-05&segment=country!=de;browserName!=ff
please upgade to: http://builds.piwik.org/piwik-1.9.2-b3.zip - this should fix it
Indeed, that fixes the problem. Thank you again!