Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2018-05-25 12:33:30 +02:00 committed by GitHub
parent 75b6dc6f61
commit 86b1904a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5044,13 +5044,13 @@ abstract class CommonObject
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
$form=new Form($this->db);
}
$val=$this->fields[$key];
$val=$this->fields[$key];
$out='';
$type='';
$param['options']=array();
$size =$this->fields[$key]['size'];
$keyprefix = $keyprefix.'options_';
// Because we work on extrafields
if(preg_match('/^integer:(.*):(.*)/i', $val['type'], $reg)){
$param['options']=array($reg[1].':'.$reg[2]=>'N');