When using this module with views that are exported and then imported into a different site, the following error may show up:
Notice: Undefined index: summary_only in template_preprocess_views_summarize_views_tablesummarized() (line 75 of E:\Inetpub\wwwroot\wwwroot\reporting\sites\all\modules\views_summarize\views_summarize.module).
It is because the Display the summary row only check box is not checked and the settings for the views have not been saved on the new site, resulting in the value not being set, rather than being set to 0.
Fixing the above error, may cause the following error to appear:
Notice: Undefined variable: summary_only in include() (line 33 of E:\Inetpub\wwwroot\wwwroot\reporting\sites\all\modules\views_summarize\views-summarize-views-tablesummarized.tpl.php).
The attached patch handles both errors.
| Comment | File | Size | Author |
|---|---|---|---|
| views-summarize-empty-summary-only.patch | 1.09 KB | oadaeh |
Comments
Comment #1
oadaeh commentedComment #2
oadaeh commentedThis has been committed to the 7.x-1.x branch, here: http://drupalcode.org/project/views_summarize.git/commit/27f08d1