I have some views pages that have no menu item. Therefore the title in the menu router item is empty. As a consequence piwik tracks all of the pages without setting the title respectively sets it an empty string.
Sending patch after I got an issue number.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | piwik-fix_dont_set_empty_page_titles-1863010-1.patch | 721 bytes | marcusx |
Comments
Comment #1
marcusx commentedPatch...
Remove empty item from menu system before using drupal_json_encode, also set title using drupal_set_title if there is no title in menu_router table.
Comment #2
hass commentedThanks for report. Why are we not changing function _piwik_get_hierarchy_titles() ? We should write tests.
Comment #3
hass commentedI do not understand the reason for this, but added the array_filter() as I was able to reproduce the bug with a view. The filtering of empty titles has fixed all issues for me.
Comment #4
hass commentedhttp://drupalcode.org/project/piwik.git/commit/25f5751
http://drupalcode.org/project/piwik.git/commit/7e255d8