1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Snippets name/value fix.

This commit is contained in:
Cameron
2020-12-28 15:47:04 -08:00
parent 86d315648a
commit cf566bbf14

View File

@@ -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)
{