Commit 818893cf authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Stop empty resume birthdate from auto-filling to Jan 1, 1970"

parents b7e1c08d 386bb1d9
......@@ -69,8 +69,11 @@ $personalinformationform = pieform(array(
'showsTime' => false,
'ifFormat' => get_string('strfdateofbirth', 'langconfig')
),
'defaultvalue' => ((!empty($personalinformation))
? $personalinformation->get_composite('dateofbirth')+3600 : null),
'defaultvalue' => (
(!empty($personalinformation) && null !== $personalinformation->get_composite('dateofbirth'))
? $personalinformation->get_composite('dateofbirth')+3600
: null
),
'title' => get_string('dateofbirth', 'artefact.resume'),
'description' => get_string('dateofbirthformatguide'),
),
......
Markdown is supported
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