mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX: fixed select all link using incorrect function
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@105868 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fac64e9aa5
commit
58a92cf456
@ -89,6 +89,7 @@ class CommentAdmin extends LeftAndMain {
|
|||||||
|
|
||||||
$idField = new HiddenField('ID', '', $section);
|
$idField = new HiddenField('ID', '', $section);
|
||||||
$table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC');
|
$table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC');
|
||||||
|
|
||||||
$table->setParentClass(false);
|
$table->setParentClass(false);
|
||||||
$table->setFieldCasting(array(
|
$table->setFieldCasting(array(
|
||||||
'Created' => 'SSDatetime->Full',
|
'Created' => 'SSDatetime->Full',
|
||||||
@ -96,7 +97,9 @@ class CommentAdmin extends LeftAndMain {
|
|||||||
));
|
));
|
||||||
|
|
||||||
$table->setPageSize(self::get_comments_per_page());
|
$table->setPageSize(self::get_comments_per_page());
|
||||||
|
$table->addSelectOptions(array('all'=>'All', 'none'=>'None'));
|
||||||
|
$table->Markable = true;
|
||||||
|
|
||||||
$fields = new FieldSet(
|
$fields = new FieldSet(
|
||||||
new LiteralField("Title", $title),
|
new LiteralField("Title", $title),
|
||||||
$idField,
|
$idField,
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<% if Items %>
|
<% if Items %>
|
||||||
<% control Items %>
|
<% control Items %>
|
||||||
<tr id="record-$Parent.id-$ID"<% if HighlightClasses %> class="$HighlightClasses"<% end_if %>>
|
<tr id="record-$Parent.id-$ID"<% if HighlightClasses %> class="$HighlightClasses"<% end_if %>>
|
||||||
<% if Markable %><td width="18" class="$SelectionTags">$MarkingCheckbox</td><% end_if %>
|
<% if Markable %><td width="18" class="$SelectOptionClasses">$MarkingCheckbox</td><% end_if %>
|
||||||
<% control Fields %>
|
<% control Fields %>
|
||||||
<td class="$Title">$Value</td>
|
<td class="$Title">$Value</td>
|
||||||
<% end_control %>
|
<% end_control %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user