1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Issue #3058 - Tweak to avoid conflict with other boolean fields.

This commit is contained in:
Cameron
2020-04-09 17:42:44 -07:00
parent 3730254b8a
commit 65322ee132
2 changed files with 9 additions and 3 deletions

View File

@@ -5475,8 +5475,12 @@ var_dump($select_options);*/
$wparms = (vartrue($parms['reverse'])) ? array(0=>$true, 1=>$false) : array(0=>$false, 1=>$true);
$dispValue = $wparms[$value];
$styleClass = '';
$styleClass = ($value === 1) ? 'admin-true-icon' : 'admin-false-icon';
if($true ==='✔')
{
$styleClass = ($value === 1) ? 'admin-true-icon' : 'admin-false-icon';
}
return $this->renderInline($field, $id, $attributes['title'], $value, $dispValue, 'select', $wparms, array('class'=>'e-editable-boolean '.$styleClass));