Commit 312f35bc authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1686833: Adjusting the resume profile information block



To deal with the new lang strings for the gender language string changes

behatnotneeded

Change-Id: I5c347f1aa99d710072c377726f2d8c45b291d14e
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 7a54a9f0)
parent 9c207a8d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -464,7 +464,14 @@ class ArtefactTypePersonalinformation extends ArtefactTypeResume {
                continue;
            }
            if ($field == 'gender' && !empty($value)) {
                $value = get_string($value, 'artefact.resume');
                // lang strings changed so need to make changes to deal with new lang string identifiers
                $field .= '1';
                if ($value == 'male') {
                    $value = get_string('man', 'artefact.resume');
                }
                else if ($value == 'female') {
                    $value = get_string('woman', 'artefact.resume');
                }
            }
            if ($field == 'dateofbirth' && !empty($value)) {
                $value = format_date($value+3600, 'strftimedate');