Commit 511ebad5 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix a mistake made while translating gender to a langauge string, when the...

Fix a mistake made while translating gender to a langauge string, when the gender isn't set. Need to check the gender itself for being empty, rather than the field name (which of course is always 'gender')
parent 4495257f
......@@ -303,7 +303,7 @@ class ArtefactTypePersonalinformation extends ArtefactTypeResume {
$fields = array();
foreach (array_keys(ArtefactTypePersonalInformation::get_composite_fields()) as $field) {
$value = $this->get_composite($field);
if ($field == 'gender' && !empty($field)) {
if ($field == 'gender' && !empty($value)) {
$value = get_string($value, 'artefact.resume');
}
$fields[get_string($field, 'artefact.resume')] = $value;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment