SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
577 stars 348 forks source link

Attribute of Field Type Boolean, control type Toggle, displays inconsistently on Batch Detail #5927

Closed ElimAdmin closed 2 months ago

ElimAdmin commented 3 months ago

Description

A new boolean Attribute of control type Toggle, added to the Financial Batch entity, and viewed on the Financial Batch Detail block, displays the boolen toggle the wrong way around.
This does not seem to happen when adding boolean toggle attributes in other places, and it does not seem to happen on other Obsidian blocks, I have only seen it here.

This seems to be a minor, localised UI bug, but are there other places where this might be happening?

Actual Behavior

On the Financial Batch Details page / Batch Detail block, a Boolean attribute with display type 'toggle' is displayed as [Yes|No] not [No|Yes] as it does everywhere else. toggle1

Expected Behavior

The display of the toggle should be consistent. Everywhere else it is [No|Yes].

Steps to Reproduce

NOTE: Does NOT happen on Demo (16.2) toggle3

DOES happen on pre-alpha and 16.5. toggle4-alpha

1 - add an entity attribute to Financial Batch, of type Boolean, with Control Type 'Toggle' toggle2

2 - Add a new financial batch, or view an existing batch. 3 - on the Batch Detail block view the toggle displayed as [Yes|No].

Issue Confirmation

Rock Version

Version 16.5 16.5 (1.16.5.4), and pre-alpha, but NOT demo

Client Culture Setting

Client Culture Setting: en-NZ, Browser settings Language = English (New Zealand).