When using the PDF Table display, my table headers (ie the labels of my fields) are printed 2 times. I will provide a patch to fix this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | views_pdf_table_header_double_labels-2270233-7.patch | 666 bytes | calmforce |
| #1 | 2270233-table_header-1.patch | 1.04 KB | guillaumev |
Comments
Comment #1
guillaumev commentedHere is the patch.
Comment #2
stefank commentedI can confirm that the patch works. Anybody else had a chance to test it, so we can move to RTBC?
thanks
Comment #3
stefank commentedActually its a small change so let put it to RTBC.
Comment #4
killua99 commentedI'll take a look.
@vegansupreme can you do the same if you have time. (assigned for email ping, you know that :) )
Comment #5
vegansupreme commentedThis patch does work at preventing the table header from being printed two times, however you can no longer apply a class to the label. Normally, in the label field you could put something like
<span class="top">theTitle</span>and then you could use CSS to style it. Before applying this patch I could use CSS to change the color of the label using a class. After applying the patch, the color was gone. This only applied to the labels, the fields were fine.Using
<em>theTitle</em>still works though.I'm not sure how to fix this patch, or if it even needs to be fixed. Just pointing out an issue I found.
Comment #6
killua99 commentedOk thanks ... looks like need some work.
Comment #7
calmforce commentedI made the simple fix in the current dev version - modified line 710 in views_pdf_template.php by replacing TRUE to FALSE, and now the header looks right. The patch is attached.
Comment #8
vegansupreme commented#7 works for me, without the problems I mentioned in #5
Comment #9
killua99 commentedif @guillaumev @stefank can review this will be nice.
@vegansupreme already did so if in one week isn't reviewed for anyone else, we submit this patch and make the v1.4 official.
Sound like a plan?
Comment #10
stefank commentedYeah, the #7 works for me as well.
Comment #11
vegansupreme commentedCommitted to dev.