From ff61316f31dd50bf188b59d834c90060fca65c83 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 12 Apr 2017 15:32:35 -0700 Subject: [PATCH] Form: Fix for flipswitch using array names. ie. myfield[key] --- e107_handlers/form_handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 8ae9d8330..a3af05ff5 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -2425,7 +2425,8 @@ class e_form } - $switchName = $name . '__switch'; + + $switchName = $this->name2id($name) . '__switch'; // fixes array names. $switchAttributes = array( 'data-type' => 'switch',