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
fusiondirectory
fusiondirectory
Commits
929b0a88
Commit
929b0a88
authored
Oct 29, 2018
by
Côme Chilliet
Browse files
✨
feat(BooleanAttribute) Display Boolean as yes/no in OrderedAttribute
issue
#5903
parent
2458a9be
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/attributes/class_BooleanAttribute.inc
View file @
929b0a88
...
...
@@ -90,6 +90,15 @@ class BooleanAttribute extends Attribute
}
}
function
displayValue
(
$value
)
{
if
(
$this
->
isTemplate
()
&&
$this
->
isTemplatable
()
&&
(
$value
===
'%askme%'
))
{
return
$value
;
}
else
{
return
(
$value
?
_
(
'yes'
)
:
_
(
'no'
));
}
}
function
renderFormInput
()
{
$id
=
$this
->
getHtmlId
();
...
...
Write
Preview
Markdown
is supported
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