BUG Fix incorrect $this reference within closure

This commit is contained in:
Damian Mooyman 2015-03-16 12:26:04 +13:00
parent c5d32f7fb2
commit dc5a941409
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class BlogPost extends Page {
null,
1024
)->setDescription('Comma separated list of names');
if(!$this->canEditAuthors()) {
if(!$self->canEditAuthors()) {
$authorField = $authorField->performDisabledTransformation();
$authorNames = $authorNames->performDisabledTransformation();
}