When creating a rule with an event "after saving a new term", when you try to add "Check a truth value condition", the token replacements patterns are not displayed for terms, but for users which is incorrect.

This happens because in rules_admin.rule_forms.inc line 738

$form['input_help'] = rules_input_evaluators_help($element, $form_state['proxy']->get_available_variables($form_state['element']['#id']));

the call $form_state['proxy']->get_available_variables($form_state['element']['#id']);

returns an array of variables with the term type being set to "taxonomy_term" which instead should be "taxonomy" because that how it is defined in the token_taxonomy.inc file.
The "taxonomy_term" part is being set in taxonomy.rules.inc from the rules module.

I'm not sure how this should be fixed correctly because "taxonomy_term" is used in tens of places, so I'm leaving it for the developers.

Comments

fago’s picture

Component: Rules Core » Rules Engine
Status: Active » Fixed

Use the latest token module together with the latest rules module, then this issue should be fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.