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:
3Dgoo 2015-11-23 10:14:13 +10:30
parent a4c6e5abb6
commit efb769d8c2

View File

@ -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(