X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=topdf.php;h=f68be29c519ad1776c3e2540d16d7379f5943475;hb=0c4f2c49ae759b4f4f9b5002d0a413f89b6498e6;hp=4ede4cddd2adadfd7de36e2335b6ab68ebebb15c;hpb=46863f8e2310c275ec6d3b933d53717da711b05a;p=timetracker.git diff --git a/topdf.php b/topdf.php index 4ede4cdd..f68be29c 100644 --- a/topdf.php +++ b/topdf.php @@ -215,8 +215,17 @@ if ($totals_only) { if ($bean->getAttribute('chtimesheet')) $html .= ''; $html .= ''; $html .= ' '; + // TODO: page breaks on PDF reports is a rarely used feature. + // Currently without configuration capability. + // Consider adding an option to user profile instead. + if (isTrue('PDF_REPORT_PAGE_BREAKS')) { + import('ttUserConfig'); + $uc = new ttUserConfig(); + $use_breaks = $uc->getValue(PDF_REPORT_PAGE_BREAKS); + if ($use_breaks) $html .= '
'; + } } - $first_pass = false; + $first_pass = false; } // Print a regular row.