From 859c6554d714c91318c7ecf2f8b32ac98115e357 Mon Sep 17 00:00:00 2001
From: Dan Chadwick <dan899@gmail.com>
Date: Fri, 6 Feb 2015 22:23:06 -0500
Subject: [PATCH] Issue #2417757 by DanChadwick: Change max_input_vars
 truncation test from op to form_id.

---
 webform.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/webform.module b/webform.module
index 885a8ea..54e394c 100644
--- a/webform.module
+++ b/webform.module
@@ -4914,7 +4914,7 @@ function webform_input_vars_check(&$form, $form_state, $parent_key = NULL) {
     $form['#pre_render'] = array('webform_pre_render_input_vars');
     $form['#input_var_waring_parent'] = $parent_key;
   }
-  if (!empty($form_state['input']) && empty($form_state['input']['op'])) {
+  if (!empty($form_state['input']) && empty($form_state['input']['form_id'])) {
     // A form was submitted with POST, but the form_build_id was missing. The most likely cause of this
     // is that the POST was truncated because PHP exceeded its max_input_vars limit.
     $subs = array(
-- 
1.7.8.msysgit.0

