Skip to content

Commit

Permalink
In the filter dropdown by block type, changed the column name to Clas…
Browse files Browse the repository at this point in the history
…sName because BlockType column does not exist
  • Loading branch information
waiyanheincyberduck committed Dec 10, 2019
1 parent bb4f3c2 commit ed89a78
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 31 deletions.
99 changes: 70 additions & 29 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Admin/BlockAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public function getList()

return $list->filter($filters);
}
}
}
2 changes: 1 addition & 1 deletion src/Model/ContentBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ContentBlock extends DataObject implements PermissionProvider
public function searchableFields()
{
return [
'BlockType' => [
'ClassName' => [
'filter' => 'ExactMatchFilter',
'title' => 'Content Type',
'field' => DropdownField::create('ClassName')->setSource(ContentBlock::get()->map('ClassName', 'ClassName'))->setEmptyString('-- Content Type --')
Expand Down

0 comments on commit ed89a78

Please sign in to comment.