Index: branches/preferences-work/phase3/includes/HTMLForm.php |
— | — | @@ -319,6 +319,11 @@ |
320 | 320 | $value = $field->filter( $value, $this->mFlatFields ); |
321 | 321 | } |
322 | 322 | |
| 323 | + foreach( $this->mFlatFields as $fieldname => $field ) { |
| 324 | + if ( !isset($fieldData[$fieldname]) ) |
| 325 | + $fieldData[$fieldname] = $field->getDefault(); |
| 326 | + } |
| 327 | + |
323 | 328 | $this->mFieldData = $fieldData; |
324 | 329 | } |
325 | 330 | |