Closed (fixed)
Project:
Webform Entity
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2012 at 14:59 UTC
Updated:
16 Nov 2015 at 17:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mstithis is the patch
Comment #2
threewestwinds commentedSteps to reproduce: Activate both webform_entity and rules on the same site, then view a form submission. You'll get a message that both the 3rd and 4th arguments are missing.
The attached patch is not correct - it invokes only webform's hook_entity_view implementation (which doesn't exist) - ie, it renders the line ineffective.
Properly, the line should be changed to
module_invoke_all('entity_view',$submission, 'webform_submission_entity', 'full', LANGUAGE_UNDEFINED)That is, add the missing arguments ($view_mode and $langcode). I believe LANGUAGE_UNDEFINED is correct here, since webform submissions are not translatable.
Comment #3
threewestwinds commentedSo, I didn't attach a patch file, but it's a simple, one line change.
Comment #4
mstrelan commentedPatch in #1 resolves an error I got with metatag module. Adjusting to #2 doesn't work because
LANGUAGE_UNDEFINEDshould beLANGUAGE_NONE. New patch attached.Comment #5
klaasvw commentedThe patch in #4 fixed the issue for me.
Comment #6
wodenx commentedLikewise, #4 fixes the issue for me.
Comment #7
lolcode commentedAgreed, #4 fixes the issue for me.
Comment #8
donutdan4114 commented#4 Patch works.
Comment #9
Tim Asplin commentedAttached new patch, line numbers seam to have changed.
Also added space after the first comma in the function call arguments as well.
Regards
Comment #10
aaronbaumanRTBC++
one-liner. let's get it in
Comment #11
joelstein commentedWorks for me!
Comment #13
aaronbaumancommitted
Comment #14
amaisano commentedDo you have a copy paste of an error example? Trying to determine if this is what I am getting, but I didn't see an example of an on screen error. Thanks.
Comment #15
aaronbaumanI don't think this would have triggered any php error, notice or otherwise.
If you're seeing an error, it's probably a different issue.
Comment #16
amaisano commentedOk, thanks. Going to switch to the latest dev anyway. Appreciate today's commits!