# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: webform_handler_field_submission_count.inc
--- webform_handler_field_submission_count.inc Base (BASE)
+++ webform_handler_field_submission_count.inc Locally Modified (Based On LOCAL)
@@ -15,6 +15,7 @@
 
     if ($this->count_type == 'node') {
       $this->additional_fields['nid'] = 'nid';
+      $this->additional_fields['type'] = 'type';
     }
     elseif ($this->count_type == 'users') {
       $this->additional_fields['uid'] = 'uid';
@@ -36,7 +37,7 @@
     global $user;
 
     $output = NULL;
-    if ($this->count_type == 'node' && in_array($node->type, webform_variable_get('webform_node_types'))) {
+    if ($this->count_type == 'node' && in_array($values->node_type, webform_variable_get('webform_node_types'))) {
       module_load_include('inc', 'webform', 'includes/webform.submissions');
       $node = node_load($values->{$this->aliases['nid']});
       if (webform_results_access($node, $user)) {
