Problem/Motivation

In swtiches module entities, Contexts/values for the conditions defined by rules module are not being saved in the switch entity.

Steps to reproduce

  1. Enable Switches and rules module
  2. Create a new switch
  3. Enable one of the conditions defined by rules(e.g. Entity is new) and change it's value in corespondinng vertical tab.
  4. Save
  5. Edit the switch again.
  6. The values for the conditions defined by rule are not saved.

Proposed resolution

Override the submitConfigurationForm() method in RulesConditionBase.php

Comments

sushyl created an issue. See original summary.

sushyl’s picture

Title: In swtiches module entities, Contexts/values for the conditions defined by rules module are not being saved » While adding swith entities for Switches module, contexts/values for the conditions defined by rules module are not being saved
TR’s picture

Status: Active » Postponed (maintainer needs more info)

I don't know what you mean in 3. Did you set up a Rule? What event did you use? How did you configure the condition? Export the Rule and post it here. What does vertical tabs have to do with this? Are there errors in the dblog or the web server log?

Switch seems to be an unsupported module that doesn't have an official D8 port yet. Can you reproduce this problems with other entity types? I assume switch is a type of content entity?

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.