Options with modified labels sink to bottom in CiviCRM Options control

Created on 26 February 2024, 4 months ago

1.0 Problem/Motivation
Options with a webform label differing from the original CiviCRM label are forced below the options which have the same value for both labels.

2.0 Detailed steps to reproduce (embed screenshots)
In CiviCRM, create an Alphanumeric checkboxes field that has more than two options.
On the Webform CiviCRM tab, enable that field.
On the Webform Build tab, edit that control, make it a "CiviCRM Options" control, choose Static Options, and change the default label of the first item.
Save the control.
Re-edit the control and observe that the edited option now appears last in the list.

3.0 Proposed resolution
I will submit a PR shortly.

πŸ› Bug report
Status

Active

Version

6.2

Component

Webform/Drupal

Created by

πŸ‡ΊπŸ‡ΈUnited States BobSCA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024