Commit 929b0a88 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

feat(BooleanAttribute) Display Boolean as yes/no in OrderedAttribute

issue #5903
parent 2458a9be
......@@ -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();
......
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