From 3f8a2e90760a7aebbe0e744a59a5c20b752ee6f0 Mon Sep 17 00:00:00 2001 From: sleewok Date: Thu, 13 Oct 2016 14:04:58 -0400 Subject: [PATCH] Update Entry.php Changed formatting. --- CRM/Batch/Form/Entry.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index 2ec2383851..1a4f72f244 100644 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -238,16 +238,14 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { } } } - /* - Display Error for Batch Sizes Exceeding php.ini max_input_vars - - Notes: $this->_elementIndex gives an approximate count of the variables being sent - An offset value is set to deal with additional vars that are likely passed. - There may be a more accurate way to do this... - */ + + // CRM-19477: Display Error for Batch Sizes Exceeding php.ini max_input_vars + // Notes: $this->_elementIndex gives an approximate count of the variables being sent + // An offset value is set to deal with additional vars that are likely passed. + // There may be a more accurate way to do this... $offset = 50; // set an offset to account for other vars we are not counting if((count($this->_elementIndex) + $offset) > ini_get("max_input_vars")) { - CRM_Core_Error::fatal(ts('Batch size is too large. Increase value of php.ini setting "max_input_vars" (current val = '. ini_get("max_input_vars").')')); + CRM_Core_Error::fatal(ts('Batch size is too large. Increase value of php.ini setting "max_input_vars" (current val = '. ini_get("max_input_vars").')')); } $this->assign('fields', $this->_fields); -- 2.25.1