Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b7e1c08d
Commit
b7e1c08d
authored
Jun 28, 2013
by
Robert Lyon
Committed by
Gerrit Code Review
Jun 28, 2013
Browse files
Merge "Allow resume gender field to be set back to "unspecified""
parents
f705b13a
65515b31
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/resume/index.php
View file @
b7e1c08d
...
...
@@ -101,6 +101,7 @@ $personalinformationform = pieform(array(
'defaultvalue'
=>
((
!
empty
(
$personalinformation
))
?
$personalinformation
->
get_composite
(
'gender'
)
:
null
),
'options'
=>
array
(
''
=>
get_string
(
'gendernotspecified'
,
'artefact.resume'
),
'female'
=>
get_string
(
'female'
,
'artefact.resume'
),
'male'
=>
get_string
(
'male'
,
'artefact.resume'
),
),
...
...
htdocs/artefact/resume/lang/en.utf8/artefact.resume.php
View file @
b7e1c08d
...
...
@@ -51,6 +51,7 @@ $string['visastatus'] = 'Visa status';
$string
[
'female'
]
=
'Female'
;
$string
[
'male'
]
=
'Male'
;
$string
[
'gender'
]
=
'Gender'
;
$string
[
'gendernotspecified'
]
=
'(Not specified)'
;
$string
[
'maritalstatus'
]
=
'Marital status'
;
$string
[
'resumesaved'
]
=
'Résumé saved'
;
$string
[
'resumesavefailed'
]
=
'Failed to update your résumé'
;
...
...
htdocs/artefact/resume/lib.php
View file @
b7e1c08d
...
...
@@ -355,6 +355,9 @@ class ArtefactTypePersonalinformation extends ArtefactTypeResume {
if
(
$field
==
'dateofbirth'
&&
!
empty
(
$value
))
{
$value
=
db_format_timestamp
(
$value
);
}
if
(
$field
==
'gender'
&&
$value
==
''
)
{
$value
=
null
;
}
$data
->
{
$field
}
=
$value
;
}
if
(
!
$have_composites
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment