Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CaMer0n opened this issue Oct 13, 2023 · 0 comments
Labels
type: bug A problem that should not be happening
Milestone

Comments

@CaMer0n
Copy link
Member

CaMer0n commented Oct 13, 2023

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)

@CaMer0n CaMer0n added the type: bug A problem that should not be happening label Oct 13, 2023
@CaMer0n CaMer0n added this to the e107 2.3.3 milestone Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

1 participant