When setting the allowed sites variable to one specific site ID, the reported site is wrong. I will provide a patch to fix this issue.

CommentFileSizeAuthor
#1 1850690-wrong_site_reported-1.patch1.26 KBguillaumev

Comments

guillaumev’s picture

Status: Active » Needs review
StatusFileSize
new1.26 KB

Here is the patch

heyehren’s picture

Thanks, the patch worked.

heyehren’s picture

Hm, now the patch doesn't work anymore. I get the following error:

Notice: Undefined index: 1 in piwik_reports_siteselect_form() (line 95 of mysite/sites/all/modules/piwik_reports/piwik_reports.pages.inc).

PascalAnimateur’s picture

I can confirm the patch from #1 doesn't work on version 3.0-rc1+0-dev

  • shelane committed b1d56fb on 7.x-3.x
    Issue #1850690 by guillaumev: Wrong site reported
    
shelane’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.