Created
June 1, 2015 08:28
-
-
Save andkar73/ed42545147d651d74e79 to your computer and use it in GitHub Desktop.
Patch for webforms 7.x-4.9 Loop for loding necesery components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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