From dc5a941409d85379aaf24c8a5790ac1621e1634b Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Mon, 16 Mar 2015 12:26:04 +1300 Subject: [PATCH] BUG Fix incorrect $this reference within closure --- code/model/BlogPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/BlogPost.php b/code/model/BlogPost.php index c9acdb6..dd699d7 100644 --- a/code/model/BlogPost.php +++ b/code/model/BlogPost.php @@ -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(); }