When using some action that injects a new variable into the rule (e.g. "Load content by id" or "Add a new string varibale"), we're asked to type the "Machine readable variable name". We're warned that this name should be unique.
Rules then tries to validate for uniqueness, in rules_admin_new_variables_form_validate(), but it fails in this task.
Comments
Comment #1
fagobump, need to have a look at that.
Comment #2
mooffie commentedI still remember something of this.
One bug is that get_available_variables() do "return rules_admin_element_filter($vars)" instead of "return array_filter($vars, 'rules_admin_element_filter')".
Another is that _get_available_variables() has the following:
In other words, the $this->_variables cache is used for both $all and !$all. This isn't alright.
I fixed these two bugs in my loop patch. Here's a paste:
(I don't remember if that's all that's needed to fix this issue's bug.)
Comment #3
mitchell commentedComment #4
fagoI've fixed that recently, before releasing beta5.