Closed (fixed)
Project:
Webform Rules
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2012 at 00:30 UTC
Updated:
8 Apr 2014 at 03:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
stborchertUh, thats a very nasty bug (and it has been there very long without anyone noticing it :( ).
From a first sight the change is very easy but if I'm changing as you suggested (which equals the original intention behind this code) nearly all sites using Webform Rules will break :(
Op "insert" is called if the webform is submitted (and the submission is saved) so I need to invoke "webform_rules_submit". Changing this now to "webform_rules_insert" will cause all installations to change their rules to react on the correct event.
So I decided to do the following:
webform_rules_insertto "After a submission draft has been submitted"webform_rules_insertin function "webform_rules_client_form_submit" (called after submitting the form while viewing a submission draft)webform_rules_submitwhen adding a non-draft submission (matches old behavior)Hopefully this will not affect as many installations as changing the calls to the (logically) correct ones.
Committed to 7.x and 6.x (new release will follow within the next days).
Comment #3
bmiller146 commentedI don't see a new build for 6.X since Feb 13, 2012. Did this fix ever get included in the 6.x code per comment #1?
Comment #4
andirez commentedIt appears that it was not, just stumbled upon this error and thankfully I found this post and was able to quickly fix the code as instructed above. My rule gets called now upon webform submission.
Comment #5
jason.bell commentedRunning Webform Rules 7.x-1.6 and rules are not firing on submission.
There is no -dev release available to download from the project page, so here is patch for those who stumble across it.