I have a rules link connected to, and exposed on a node with a certain bundle type. When I add a comment to that node it fires the conditions of my rules link. If I understand correctly, the rules link should only fire once it is clicked?

Once I add a comment to this node, In my reports-recent log messages i see this;

Rules debug information:
" Executing and Rules link: test rule link condition.
0 ms Executing and Rules link: test rule link condition.
12.719 ms AND evaluated to TRUE.
12.816 ms Finished executing of and Rules link: test rule link condition.

This is the automatic condition rule which was created with my rule link. It has no conditions, only a variable of node type.

Comments

IWasBornToWin’s picture

Any help?

IWasBornToWin’s picture

Still having problems here. The rules link fires when the node is loaded, it also fires when i look at a view of teasers. It pretty much fires anytime there is a focus on the particular content, it's like it is firing on a "when loaded or when exposed" action rather than a "when clicked" action.

sepgil’s picture

Status: Active » Fixed

The access conditions of the rules link is evaluated for every node, to determine if the link should be rendered. The Reaction components are not evaluated.

Status: Fixed » Closed (fixed)

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

luxpir’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta5
Status: Closed (fixed) » Active

I'm having the same issue here, actually - it'd be great to get the links to only fire when clicked, but I wouldn't know where to start myself. Anyone made any progress before I dive in?

I'm using Rules Link with Content Access, granting permissions, so the links really shouldn't fire without a clear and specific click in this case.

luxpir’s picture

Would it work to use a flag that triggers the (hidden) Rules Link when flagged, and runs the opposite rule (revoke access) when unflagged? Testing. Thoughts still welcome.

[edit] Starting to think it's not a bug now, rather the Rules log is just reporting that the Rules Links are just being loaded. When I actually click on one of the links, the log shows:

> Executing rule set Rules link: 'my rule' set

Whereas when loading the links onto the page it just says:

> Executing and Rules link: 'my rule' condition

So it's merely testing for the condition. I could set a condition to a certain page the view loads on to save it checking elsewhere, and I think that would wrap this up. Will leave open a little longer in case any one has any thoughts.

[edit2] Sepgil's comment from last year actually makes sense now that I know what I know. Definitely marking as fixed now. Hope this at least stops anyone else worrying about the issue/non-issue.

luxpir’s picture

Status: Active » Closed (works as designed)

Closing.