Skip to content

Commit

Permalink
Update FAQQuestion.php
Browse files Browse the repository at this point in the history
  • Loading branch information
michelsteege committed Mar 16, 2018
1 parent 2b768d3 commit 8edfaa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Model/FAQQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace TheWebmen\FAQ\Model;

use SilverStripe\ORM\DataObject;
use SilverStripe\CMS\Model\SiteTree;

class FAQQuestion extends DataObject {

Expand All @@ -18,7 +19,8 @@ class FAQQuestion extends DataObject {
];

private static $has_one = [
'Category' => FAQCategorie::class
'Category' => FAQCategorie::class,
'Page' => SiteTree::class
];

private static $summary_fields = [
Expand All @@ -34,6 +36,7 @@ public function getCMSFields()

$fields->removeByName('Sort');
$fields->removeByName('CategoryID');
$fields->removeByName('PageID');

return $fields;
}
Expand Down

0 comments on commit 8edfaa6

Please sign in to comment.