From 392c5effb7ca604bfdf18e77f59675ee2132bd57 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 4 Feb 2010 04:31:20 +0000 Subject: [PATCH] MINOR set Print flag correctly on TLF MINOR custom print template for SSReport TLF's that exposes the report title, and filters set (from r97138) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98154 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableListField.php | 1 + templates/TableListField.ss | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index dbe073095..a38374c71 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -1009,6 +1009,7 @@ JS $this->showPagination = false; increase_time_limit_to(); + $this->Print = true; $result = $this->renderWith(array($this->template . '_printable', 'TableListField_printable')); diff --git a/templates/TableListField.ss b/templates/TableListField.ss index c39267d27..f74e59d5a 100755 --- a/templates/TableListField.ss +++ b/templates/TableListField.ss @@ -72,9 +72,9 @@ <% end_if %> -
+ <% if Print %><% else %>
<% control Utility %> $Title <% end_control %> -
+
<% end_if %>