mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
acff378781
commit
36dad03935
@ -559,7 +559,7 @@ JS;
|
|||||||
$cName = $this->Name().'[new]['.$field.'][]';
|
$cName = $this->Name().'[new]['.$field.'][]';
|
||||||
|
|
||||||
if($fieldObj = $fields->dataFieldByName($cellName)) {
|
if($fieldObj = $fields->dataFieldByName($cellName)) {
|
||||||
if(!trim($fieldObj->value)){
|
if(!trim($fieldObj->Value())){
|
||||||
$title = $fieldObj->Title();
|
$title = $fieldObj->Title();
|
||||||
$errorMessage .= "In $this->name '$title' is required.<br />";
|
$errorMessage .= "In $this->name '$title' is required.<br />";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user