From 2b0add5c727b2cfab49a57ceb5ef2b488b370467 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Thu, 6 Nov 2008 06:32:05 +0000 Subject: [PATCH] APICHANGE: make DataObject::getField() visible to the public git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65388 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 665849305..c5b5eb119 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -1551,7 +1551,7 @@ class DataObject extends ViewableData implements DataObjectInterface,i18nEntityP * * @return mixed The field value */ - protected function getField($field) { + public function getField($field) { // If we already have an object in $this->record, then we should just return that if(isset($this->record[$field]) && is_object($this->record[$field])) return $this->record[$field];