BUGFIX: Don't failover to standard value in ViewableData_Customised if the customised value is defined but isn't set. $obj->customise(array('Content'=>'')) should set Content to ''

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@91047 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-11-09 07:58:57 +00:00
parent f80d5edbcb
commit 601430653a

View File

@ -816,9 +816,9 @@ class ViewableData_Customised extends ViewableData {
}
public function cachedCall($field, $arguments = null, $identifier = null) {
$result = $this->customised->cachedCall($field, $arguments, $identifier);
if(!$result) {
if($this->customised->hasMethod($field) || $this->customised->hasField($field)) {
$result = $this->customised->cachedCall($field, $arguments, $identifier);
} else {
$result = $this->original->cachedCall($field, $arguments, $identifier);
}