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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user