I get the following warnings, but only when my view contains the problematic fields as I described in #1087898: PDOException: SQLSTATE[HY000] on batch export.
Notice: Undefined variable: header in template_preprocess_views_data_export_msoffice_header() (line 290 of theme/views_data_export.theme.inc).
Notice: Undefined variable: output in template_preprocess_views_data_export_msoffice_body() (line 255 of theme/views_data_export.theme.inc).
Notice: Undefined variable: header in template_preprocess_views_data_export_msoffice_body() (line 258 of theme/views_data_export.theme.inc).
Attached patch fixes these warnings (tablesort-functions were not called properly).
The patch does away with the warnings, but is no remedy to the other issue. (That's why I open this new post.)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | views_data_export-1088990-5-Fix_pesky_notices.patch | 2.15 KB | nickl |
| vde_template_preprocess_views_data_export_msoffice.patch | 1.13 KB | johnv |
Comments
Comment #1
steven jones commentedComment #2
steven jones commentedFixed in git, thanks for the patch!
Comment #3
steven jones commentedComment #5
nickl commentedFix those pesky NOTICES patch against 6.x-2.x HEAD.
Comment #6
steven jones commentedI don't get why you're adding a wrapping array here, we shouldn't need it according to the docs.
Comment #7
steven jones commentedI think I can see what's going on there, fixed in 6.x-2.x