When using views field grouping, the tpl.php gets called once for each group and the row index continues to increment, but in template_preprocess_views_flipped_table() the row index starts from 0 each time the function gets called. This patch uses the original field key when setting the flipped rows to prevent undefined offset errors in views-flipped-table.tpl.php at lines 38 and 53.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | flipping_rows_undefined_index-2277369-6.patch | 536 bytes | proofoftom |
| #1 | flipping_rows_undefined_index-2277369-1.patch | 536 bytes | proofoftom |
Comments
Comment #1
proofoftom commentedPatch for 7.x-1.x-dev
Comment #2
proofoftom commentedComment #3
proofoftom commentedMarked #2279151: PHP undefined offset errors in views-flipped-table.tpl.php at lines 38 and 53 as duplicate of this issue. It explains the symptoms of this issue.
Comment #4
proofoftom commentedComment #5
andileco commentedIf you are modifying version 7.x-1.0, you will want to modify lines 25 and 27.
Comment #6
proofoftom commentedPatch for 7.x-1.0
Comment #7
naught101 commentedThanks Tommy Cox, patch in commit 0ce83f1. Should be out in 7.x-1.x soon.
Comment #8
naught101 commented