Permalink
Browse files

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
  • Loading branch information...
1 parent fac64e9 commit 58a92cf456d132be6fc40de4d9110712812d6e29 Will Rossiter committed with sminnee May 28, 2010
Showing with 5 additions and 2 deletions.
  1. +4 −1 code/CommentAdmin.php
  2. +1 −1 templates/Includes/CommentTableField.ss
@@ -89,14 +89,17 @@ public function EditForm() {
$idField = new HiddenField('ID', '', $section);
$table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter), 'Created DESC');
+
$table->setParentClass(false);
$table->setFieldCasting(array(
'Created' => 'SSDatetime->Full',
'Comment' => array('HTMLText->LimitCharacters', 150)
));
$table->setPageSize(self::get_comments_per_page());
-
+ $table->addSelectOptions(array('all'=>'All', 'none'=>'None'));
+ $table->Markable = true;
+
$fields = new FieldSet(
new LiteralField("Title", $title),
$idField,
@@ -44,7 +44,7 @@
<% if Items %>
<% control Items %>
<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 %>
<td class="$Title">$Value</td>
<% end_control %>

0 comments on commit 58a92cf

Please sign in to comment.