Step to reproduce:

  1. Create a new conditional rule.
  2. Chang the condition operator to 'is empty'.
  3. Change the condition operator to 'is' and enter an operand value.
  4. Save the conditionals.
  5. Observe the that the operand value was not saved.

This is because 'is empty' sets the HTML for the operand to a non-breaking space, which does not contain form element. When it comes time to replace the non-breaking space with the new form elements for the 'is' operator, there is no name attribute to copy from the old HTML. The solution is to substitute an display:none input element rather than a non-breaking space.

Comments

DanChadwick created an issue. See original summary.

danchadwick’s picture

Status: Active » Fixed
StatusFileSize
new890 bytes

Committed to 7.x-4.x and 8.x.

  • DanChadwick committed 3dc0962 on 8.x-4.x
    Issue #2579227: Fixed setting a conditional rule to 'is empty' breaks...

  • DanChadwick committed 2c3e028 on
    Issue #2579227: Fixed setting a conditional rule to 'is empty' breaks...

Status: Fixed » Closed (fixed)

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