From cf566bbf1451bee706ccc329f785da5b8a74b2e3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 28 Dec 2020 15:47:04 -0800 Subject: [PATCH] Snippets name/value fix. --- e107_handlers/form_handler.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 1c735671f..d814d8d33 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -2487,9 +2487,16 @@ class e_form unset($options['class']); } + if(!empty($options['label'])) + { + $snip['label'] = trim($options['label']); + unset($options['label']); + } + $snip['id'] = $this->_format_id(varset($options['id']), $name, $value, null); unset($options['id']); - $snip['attributes'] = $this->get_attributes($options, $name, $value); + + $snip['attributes'] = "name='".$name."' value='".$value."' ".$this->get_attributes($options, $name, $value); foreach($snip as $k=>$v) {