From b3e30ac8195e43220eedfd33186f98ba605d0ebe Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 13 Apr 2010 02:26:52 +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) (from r98154) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102621 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 2adf6ce38..310658186 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -1013,6 +1013,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 ae8f42dd3..71d706ca7 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 %>