Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andkar73/ed42545147d651d74e79 to your computer and use it in GitHub Desktop.
Save andkar73/ed42545147d651d74e79 to your computer and use it in GitHub Desktop.
Patch for webforms 7.x-4.9 Loop for loding necesery components
diff --git a/includes/webform.submissions.inc b/includes/webform.submissions.inc
index a145b13..e444d38 100644
--- a/includes/webform.submissions.inc
+++ b/includes/webform.submissions.inc
@@ -633,6 +633,12 @@ function webform_submission_render($node, $submission, $email, $format, $exclude
$components = $node->webform['components'];
+ // Loop for loding necesery components. The problem, probpbly arises, due to
+ // the use of panels and panels-everywhere.2015-06-01 Andreas Karlsson
+ foreach ($components as $component){
+ webform_component_include($component['type']);
+ }
+
// Remove excluded components.
if (is_array($excluded_components)) {
foreach ($excluded_components as $cid) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment