Unused conditions prevent rule activation when conditions have missing context
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3027844. -->
Reported by: [pstewart](https://www.drupal.org/user/2491114)
>>>
<p>For example, if you have a rule with a condition based on page paths which do not correspond to a node content type, the Content type condition is still being saved and is checked in the rule entity isActive method: as this plugin has missing context on non-node pages the condition will fail and prevent the rule from activating.</p>
<p>The solution is to not save/add a plugin when it's form has no values. In the above example only the 'Pages' plugin would have anything in the form, so this is the only plugin which would be saved and participate in the condition check in isActive.</p>
issue