Skip to content

Commit da7041d

Browse files
committed
Do not link table headers in a PDF
No sorting rows in PDF, no need to print links
1 parent 8e12458 commit da7041d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

meta/AggregationTable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,11 @@ protected function renderColumnHeaders()
308308

309309
// output XHTML header
310310
$this->renderer->doc .= "<th $width $data>";
311-
$this->renderer->doc .= '<a href="' . $link . '" class="' . $sortclass . '" title="' . $this->helper->getLang('sort') . '">' . hsc($header) . '</a>';
311+
if (is_a($this->renderer, 'renderer_plugin_dw2pdf')) {
312+
$this->renderer->doc .= hsc($header);
313+
} else {
314+
$this->renderer->doc .= '<a href="' . $link . '" class="' . $sortclass . '" title="' . $this->helper->getLang('sort') . '">' . hsc($header) . '</a>';
315+
}
312316
$this->renderer->doc .= '</th>';
313317
}
314318

0 commit comments

Comments
 (0)