mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUG Fix incorrect $this reference within closure
This commit is contained in:
parent
c5d32f7fb2
commit
dc5a941409
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user