Allow single-valued data selector input to be passed as an array for 'multiple' context fields

Created on 11 May 2016, over 8 years ago
Updated 2 September 2024, 5 days ago

Problem/Motivation

Some actions have context fields which are 'multiple' - that is, they accept a list of values (e.g. the 'To:' field for the 'SystemSendEmail' action). This means the data passed to the context must be a list of the required datatype. This was worked on in #2648300: Support multiple contexts in the UI β†’ .

However we now cannot enter variables like user.mail in the "To:" field using the data selector input (as opposed to the direct input mode) because emails are typically not stored as a list of values, but as single string.

Proposed resolution

(Maybe) wrap multiple context fields in an array if the provided data is not an array. But I am open to other solutions.

Remaining tasks

  • tbc

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Needs work

Version

4.0

Component

Rules Core

Created by

πŸ‡¬πŸ‡§United Kingdom yanniboi

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024