e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

Admin-UI: renderValue() of type boolean ignores custom true/false readParm string values when inline editing is not enabled. #5089

Closed CaMer0n closed 8 months ago

CaMer0n commented 8 months ago

Bug Description

Admin-UI: List mode - Custom true/false string values in the readParms() are ignored when inline editing is not enabled on a field with type= boolean.

How to Reproduce

Include something like the following example in the readParms of the boolean.

'field_name'    => array ( 
    ....
    'type' => 'boolean', 
    'data' => 'int',
   'inline' => false, 
    'readParms' =>  array ('trueonly'=>1, 'true'=>'TRUE', 'false'=>'·'),  
    ....
),

Expected Behavior

A value of 1 in the database should render as "TRUE".

Actual Behavior

A value of 1 in the database renders the default green check-mark (ADMIN_TRUE_ICON)