Merge pull request #160 from tractorcow/pulls/2.0/fix-self

BUG Fix incorrect $this reference within closure
This commit is contained in:
Christopher Pitt 2015-03-16 12:35:48 +13:00
commit 47369dc9b6

View File

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