Commit 386bb1d9 authored by Aaron Wells's avatar Aaron Wells

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

Bug1195269

Change-Id: Ia0652570c7fc495b34e04716a6b339956e5ff017
parent beff568b
......@@ -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