mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Fixes #1248 - min value in $frm->number() options.
This commit is contained in:
@@ -852,13 +852,11 @@ class e_form
|
|||||||
|
|
||||||
$mlength = vartrue($maxlength) ? "maxlength=".$maxlength : "";
|
$mlength = vartrue($maxlength) ? "maxlength=".$maxlength : "";
|
||||||
|
|
||||||
$min = varset($options['min']) ? 'min="'.$options['min'].'"' : '';
|
$min = isset($options['min']) ? 'min="'.$options['min'].'"' : '';
|
||||||
$max = vartrue($options['max']) ? 'max="'.$options['max'].'"' : '';
|
$max = isset($options['max']) ? 'max="'.$options['max'].'"' : '';
|
||||||
|
|
||||||
$options = $this->format_options('text', $name, $options);
|
$options = $this->format_options('text', $name, $options);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//never allow id in format name-value for text fields
|
//never allow id in format name-value for text fields
|
||||||
if(THEME_LEGACY === false)
|
if(THEME_LEGACY === false)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user