Skip to content

Commit

Permalink
MINOR set Print flag correctly on TLF
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sam Minnee committed Feb 2, 2011
1 parent e764dec commit 392c5ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions forms/TableListField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ function printall() {
$this->showPagination = false;

increase_time_limit_to();
$this->Print = true;

$result = $this->renderWith(array($this->template . '_printable', 'TableListField_printable'));

Expand Down
4 changes: 2 additions & 2 deletions templates/TableListField.ss
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
<% end_if %>
</tbody>
</table>
<div class="utility">
<% if Print %><% else %><div class="utility">
<% control Utility %>
<span class="item"><a href="$Link">$Title</a></span>
<% end_control %>
</div>
</div><% end_if %>
</div>

0 comments on commit 392c5ef

Please sign in to comment.