Closed (works as designed)
Project:
Ubercart Webform Checkout Pane
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2012 at 09:51 UTC
Updated:
4 Mar 2012 at 14:59 UTC
Comments
Comment #1
arski commentedHi, thanks for this. One thing I'm wondering about - should the presave/insert hooks have the capability to alter the submission object? Because if they do (and I'm assuming that's the case), then this will not happen with that patch (because the hooks get $submission passed to them, and the actual submit handler uses $form_state directly).
Haven't checked Webform code myself yet though, so maybe my assumption is wrong. Also need to check where these hooks are normally called inside Webform.
Comment #2
arski commentedActually, the module already supports both hooks, as when a pane is saved,
webform_client_form_submitis called, which in turn callswebform_submission_insertwhich then invokes the hooks.. So I guess your problem might be more specific?Feel free to reopen if the problem persists, but I would suggest you to debug a little more, i.e. make sure that the hook is not called in webform_civicrm and/or maybe if something else is not working correctly inside the hooks implemented there.
Cheers