diff --git a/css/TableListField.css b/css/TableListField.css index c6f42d80c..742061e48 100644 --- a/css/TableListField.css +++ b/css/TableListField.css @@ -40,7 +40,7 @@ table.CMSList thead th { height : 24px; border-right : 1px solid #aca899; border-left : 1px solid #ffffff; - padding-left : 5px; + padding-left : 0 5px; } table.TableField thead th span, @@ -75,8 +75,8 @@ table.TableField tfoot td, .TableListField table.data tfoot td, table.CMSList tbody td, table.CMSList tfoot td { - border : 1px solid #f1efe2; - padding-left : 5px; + border: 1px solid #f1efe2; + padding: 5px; } .TableListField table.data tfoot tr.addtogrouprow td { diff --git a/forms/RequiredFields.php b/forms/RequiredFields.php index e4500e8fa..f87acbc45 100755 --- a/forms/RequiredFields.php +++ b/forms/RequiredFields.php @@ -54,13 +54,14 @@ class RequiredFields extends Validator{ function javascript() { $js = ""; $fields = $this->form->Fields(); - - foreach($this->form->Fields()->dataFields() as $field) { - //if the field type has some special specific specification for validation of itself - $validationFunc = $field->jsValidation(); - if($validationFunc) $js .= $validationFunc . "\n"; + $dataFields = $this->form->Fields()->dataFields(); + if($dataFields) { + foreach($dataFields as $field) { + // if the field type has some special specific specification for validation of itself + $validationFunc = $field->jsValidation(); + if($validationFunc) $js .= $validationFunc . "\n"; + } } - $useLabels = $this->useLabels ? 'true' : 'false'; if($this->required) { diff --git a/security/Member.php b/security/Member.php index ac6b34dff..2807a13bf 100644 --- a/security/Member.php +++ b/security/Member.php @@ -63,9 +63,9 @@ class Member extends DataObject { ); static $summary_fields = array( - 'FirstName', - 'Surname', - 'Email', + 'FirstName' => 'First Name', + 'Surname' => 'Last Name', + 'Email' => 'Email', ); /**