Problem/Motivation

After #2648300: Support multiple contexts in the UI the rules_send_email action allows multiple ('to' field) recipients. There are only a couple of context values that have an explicit schema defined, but rules_send_email is one of them. The to context is still defined as single value in the schema, so trying to save multiple recipients throws an error.

Proposed resolution

Change the schema for 'to' from email to sequence.

CommentFileSizeAuthor
#2 rules-update_rules_action-2724595-2.patch463 bytesyanniboi

Comments

yanniboi created an issue. See original summary.

yanniboi’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new463 bytes

Created a pull request: https://github.com/fago/rules/pull/451

Also attached patch because its fairly simple.

  • klausi committed ca6532e on 8.x-3.x
    Issue #2724595 by klausi, yanniboi: Fixed config schema for send email...
klausi’s picture

Status: Needs review » Fixed

Merged with a test case, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.