Commit d686f176 authored by Penny Leach's avatar Penny Leach
Browse files

fixing [#629] - made educationhistory end date not mandatory and changed

the not specified end date to 'current' rather than 'not specified'
parent 9d6054c4
......@@ -50,7 +50,7 @@ if (!$data = get_records_sql_array($sql, array($USER->get('id'), $type))) {
foreach ($data as &$row) {
foreach (array('date', 'startdate', 'enddate') as $key) {
if (array_key_exists($key, $row)) {
$row->{$key} = format_date(strtotime($row->{$key}), 'strftimedate');
$row->{$key} = format_date(strtotime($row->{$key}), 'strftimedate', 'current', 'artefact.resume');
}
}
}
......
......@@ -77,4 +77,5 @@ $string['goalandskillsaved'] = 'Saved successfully';
$string['resume'] = 'Résumé';
$string['confirmeditprofile'] = 'If you continue to edit your profile now, you will lose any unsaved information in this area';
$string['profilegotoresume'] = 'Edit My Résumé';
$string['current'] = 'Current';
?>
......@@ -671,9 +671,6 @@ class ArtefactTypeEducationhistory extends ArtefactTypeResumeComposite {
'showsTime' => false,
'ifFormat' => '%Y/%m/%d',
),
'rules' => array(
'required' => true,
),
'title' => get_string('enddate', 'artefact.resume'),
),
'institution' => array(
......
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