MINOR: #2470 Fix PHP notice (cmswarrior)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56949 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-06-25 06:04:14 +00:00
parent 1107757128
commit 87a43ce8c1

View File

@ -25,6 +25,8 @@ class ComplexRequiredFields extends RequiredFields{
* which is generated at the header of each page
*/
function javascript() {
$code = '';
foreach($this->form->Fields() as $field){
//if the field type has some special specific specification for validation of itself
$valid = $field->jsValidation();