Fix: text field type for string, email and numeric
This commit is contained in:
parent
5974cde154
commit
0f4e74fa50
@ -87,6 +87,7 @@ class Form
|
|||||||
if ($perm)
|
if ($perm)
|
||||||
{
|
{
|
||||||
$tmp=explode(':',$typeofdata);
|
$tmp=explode(':',$typeofdata);
|
||||||
|
if (preg_match('/^(string|email|numeric)$/i',$tmp[0])) $tmp[0] = 'text';
|
||||||
$ret.= '<div class="editkey_'.$tmp[0].'" id="'.$htmlname.'">';
|
$ret.= '<div class="editkey_'.$tmp[0].'" id="'.$htmlname.'">';
|
||||||
$ret.= $langs->trans($text);
|
$ret.= $langs->trans($text);
|
||||||
$ret.= '</div>'."\n";
|
$ret.= '</div>'."\n";
|
||||||
@ -236,7 +237,8 @@ class Form
|
|||||||
if (preg_match('/^(string|email|numeric)/',$inputType))
|
if (preg_match('/^(string|email|numeric)/',$inputType))
|
||||||
{
|
{
|
||||||
$tmp=explode(':',$inputType);
|
$tmp=explode(':',$inputType);
|
||||||
$inputType=$tmp[0]; $inputOption=$tmp[1];
|
$inputType='text';
|
||||||
|
$inputOption=$tmp[1];
|
||||||
if (! empty($tmp[2])) $savemethod=$tmp[2];
|
if (! empty($tmp[2])) $savemethod=$tmp[2];
|
||||||
}
|
}
|
||||||
if (preg_match('/^datepicker/',$inputType))
|
if (preg_match('/^datepicker/',$inputType))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user