From f3ec2dca2e9b9fe0d638f939107fb21736b744a0 Mon Sep 17 00:00:00 2001 From: James Ayers Date: Mon, 20 Aug 2018 19:53:01 +1200 Subject: [PATCH] FIX update variables from extension --- code/model/DMSDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/model/DMSDocument.php b/code/model/DMSDocument.php index c199145..cc3e15e 100644 --- a/code/model/DMSDocument.php +++ b/code/model/DMSDocument.php @@ -821,8 +821,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface new GridFieldPaginator(30) ); - $link = $this->owner->Link(); - $filenameWithoutID = $this->owner->FilenameWithoutID; + $link = $this->Link(); + $filenameWithoutID = $this->FilenameWithoutID; $versionsGridFieldConfig->getComponentByType('GridFieldDataColumns') ->setDisplayFields(Config::inst()->get('DMSDocument_versions', 'display_fields'))