Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Enable Switches and rules module
- Create a new switch
- Enable one of the conditions defined by rules(e.g. Entity is new) and change it's value in corespondinng vertical tab.
- Save
- Edit the switch again.
- The values for the conditions defined by rule are not saved.
Proposed resolution
Override the submitConfigurationForm()
method in RulesConditionBase.php
Comments
Comment #2
sushylComment #3
TR CreditAttribution: TR commentedI 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?
Comment #4
TR CreditAttribution: TR commentedNo further information provided.