Closed (works as designed)
Project:
Rules Link
Version:
7.x-1.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2011 at 16:50 UTC
Updated:
27 Sep 2013 at 10:38 UTC
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
Comment #1
IWasBornToWin commentedAny help?
Comment #2
IWasBornToWin commentedStill 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.
Comment #3
sepgil commentedThe 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.
Comment #5
luxpir commentedI'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.
Comment #6
luxpir commentedWould 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' setWhereas when loading the links onto the page it just says:
> Executing and Rules link: 'my rule' conditionSo 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.
Comment #7
luxpir commentedClosing.