Within a Rule Actions I defined "Set a data value" actions for some Fields inside of Other Fields Collection of a Node.
After i deleted the fields, I get some errors and i can't delete those actions.
1. For the Rules list:
Error: Data selector node:field-collection:field-subfield for parameter data is invalid.
2. The Rule Edit page, same error but for every "Set a data value" action, deleted field related
Error: Data selector node:field-collection:field-subfield for parameter data is invalid.
3. Try to delete action,
- i confirm the Delete and it continue to says:
Unable to delete the action as some of its provided variables are utilized by the action Set a data value.
Maybe it's a general issue about deleting fields and the rules related with them.
Comment | File | Size | Author |
---|---|---|---|
#7 | rules_event_fix.patch | 11.91 KB | fago |
#2 | rules_fix_configs.patch | 3.11 KB | fago |
Comments
Comment #1
vasikeI also can't clone or export/import stuff of the rule
Comment #2
fagouhm, yep. that's a rather weird problem currently. Could you try whether the attached patch works for you?
Comment #3
fagoWith the patch you should be able to delete broken stuff.
Comment #4
vasikethe patch does its work. i was able to delete the rules with broken config.
i also by mistake i tried first the #1029600-6: Disable rule has wrong confirmation text patch which also allow me to do this, in case that info will help you.
Comment #5
fagoYou missed the R in RTBC.. ;) Also, I doubt the patch from #1029600-6: Disable rule has wrong confirmation text solves it.
The patch touches removing rule elements and events, so we that's what we need to test:
a) to work now for a broken rules config
b) to still work for working configs
c) to still throw validation errors for working configs
Comment #6
fagoThis still sucks.
It's inconsistent to be able to delete anything because it would break your rule, but once it broken you can suddenly do everything. So let's do it better:
* Allow the user *always* to do everything-
* If the rule is not broken, warn the user before he's breaking a rule on the confirmation screen.
Comment #7
fagook, implemented that. See attached patch.
It also improves some messages related when adding/remove event.
Comment #8
fagoCommitted.
Comment #10
mitchell CreditAttribution: mitchell commentedUpdated component.