fix livesite bug for visibility handling difference between PHP5.2.0 and PHP5.1.6

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40782 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2007-08-24 00:48:04 +00:00
parent acff378781
commit 36dad03935

View File

@ -559,7 +559,7 @@ JS;
$cName = $this->Name().'[new]['.$field.'][]';
if($fieldObj = $fields->dataFieldByName($cellName)) {
if(!trim($fieldObj->value)){
if(!trim($fieldObj->Value())){
$title = $fieldObj->Title();
$errorMessage .= "In $this->name '$title' is required.<br />";
}