If a rule is cloned and the event is changed, the default labels of conditions and actions may not be correct.
Example:
1) Add a new triggered rule, event "After saving new content"
2) Add an action "Publish content"
3) Clone this rule and change the event to "After updating existing content"
4) The action has the wrong label "Publish created content", it should be "Publish updated content"

A solution would be to call a label update function for a new cloned rule.

CommentFileSizeAuthor
#1 rules-552334.patch3.23 KBklausi

Comments

klausi’s picture

Status: Active » Needs review
StatusFileSize
new3.23 KB

Here is a patch that does a label update on cloning and every time the rule settings are updated (important if the event and variable names change).

klausi’s picture

Issue tags: +gsoc:rulesmonkey
klausi’s picture

Status: Needs review » Needs work

Hm, I must have missed something here ... this is not working yet.

mitchell’s picture

Component: User interface » Rules Engine
fago’s picture

Status: Needs work » Closed (cannot reproduce)

As this bug-report is rather old, please verify it's still valid in the latest dev version and re-open if so. For now, I'm marking it as closed.