Label cannot be different for multiple fields

Created on 4 October 2023, about 1 year ago
Updated 19 October 2023, about 1 year ago

Problem/Motivation

When using more than one instance of an On/Off Form in the same View, they all get the label of the last instance. This is due to a variable being erroneously reassigned within a foreach loop.

Steps to reproduce

Create a View with two "Global: On/Off Form" fields. Change the label of the first to "one" and the label of the second to "two". Observe that both fields are rendered with the label "two".

Proposed resolution

Use a different $l variable inside the loop so that the $label variable can retain its value.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenStallings

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

Comments & Activities

Production build 0.71.5 2024