diff --git a/classes/TCreateForm.class.php b/classes/TCreateForm.class.php index a8e54cb..07c2216 100644 --- a/classes/TCreateForm.class.php +++ b/classes/TCreateForm.class.php @@ -164,8 +164,10 @@ private function addFieldType($key,$FieldName) { break; case 'TINYINT': case 'INT': - $this->addLine('$frm->addNumberField(\''.$FieldName.'\', \''.$FieldName.'\',4,true,0);'); - break; + case 'INTEGER': + case 'NUMERIC': + $this->addLine('$frm->addNumberField(\''.$FieldName.'\', \''.$FieldName.'\',4,'.$required.',0);'); + break; default: $this->addLine('$frm->addTextField(\''.$FieldName.'\', \''.$FieldName.'\',50,'.$required.');'); }