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

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

issue #5903
Showing with 9 additions and 0 deletions
+9 -0
......@@ -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();
......
Supports Markdown
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