mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fixing BlogPost getCMSFields bug
Fixing bug in `BlogPost` `getCMSFields` where `$this` was being called within the `beforeUpdateCMSFields` function where `$self` should be used. This was causing an error when trying to view / edit a `BlogPost` through the CMS.
This commit is contained in:
parent
a4c6e5abb6
commit
efb769d8c2
@ -216,7 +216,7 @@ class BlogPost extends Page
|
||||
$authorField = ListboxField::create(
|
||||
'Authors',
|
||||
_t('BlogPost.Authors', 'Authors'),
|
||||
$this->getCandidateAuthors()->map()->toArray()
|
||||
$self->getCandidateAuthors()->map()->toArray()
|
||||
)->setMultiple(true);
|
||||
|
||||
$authorNames = TextField::create(
|
||||
|
Loading…
Reference in New Issue
Block a user