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
65515b31
Commit
65515b31
authored
Jun 27, 2013
by
Aaron Wells
Browse files
Allow resume gender field to be set back to "unspecified"
Bug1171365 Change-Id: I865dc0d69d6f5a29b4d8d8d4763d393011d2f7da
parent
beff568b
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/resume/index.php
View file @
65515b31
...
...
@@ -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 @
65515b31
...
...
@@ -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 @
65515b31
...
...
@@ -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