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) (from r98154)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102621 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Apr 13, 2010
1 parent eba6c9b commit b3e30ac
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 @@ -1013,6 +1013,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 b3e30ac

Please sign in to comment.