diff --git a/code/Model/VirtualPage.php b/code/Model/VirtualPage.php index cfbc2c6a82..a734c2bc0d 100644 --- a/code/Model/VirtualPage.php +++ b/code/Model/VirtualPage.php @@ -483,10 +483,11 @@ public function isFieldVirtualised($field) */ public function __call($method, $args) { - if (parent::hasMethod($method)) { + if (parent::hasMethod($method) || !$this->CopyContentFromID) { return parent::__call($method, $args); } else { - return call_user_func_array([$this->CopyContentFrom(), $method], $args ?? []); + $record = $this->CopyContentFrom(); + return $record->$method(...$args); } }