Skip to content

Commit

Permalink
Корректное "Да/Нет" на детальной странице
Browse files Browse the repository at this point in the history
  • Loading branch information
ASGAlex committed Nov 13, 2015
1 parent c078299 commit dcfdce2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/widget/CheckboxWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,16 @@ public function genListHTML(&$row, $data)
$row->AddEditField($this->getCode(), $editHtml);
}

$value = intval($this->getValue() == 'Y') ? Loc::getMessage('CHECKBOX_YES') : Loc::getMessage('CHECKBOX_NO');
$value = $this->getValueReadonly();
$row->AddViewField($this->getCode(), $value);

}

protected function getValueReadonly()
{
return intval($this->getValue() == 'Y') ? Loc::getMessage('CHECKBOX_YES') : Loc::getMessage('CHECKBOX_NO');
}

/**
* Генерирует HTML для поля фильтрации
*
Expand Down

0 comments on commit dcfdce2

Please sign in to comment.