forked from Wavyzz/dolibarr
FIX update extrafields
This commit is contained in:
@@ -135,7 +135,7 @@ class User extends CommonObject
|
||||
|
||||
public $default_c_exp_tax_cat;
|
||||
public $default_range;
|
||||
|
||||
|
||||
public $fields=array(
|
||||
'rowid'=>array('type'=>'integer', 'label'=>'TechnicalID', 'enabled'=>1, 'visible'=>-2, 'notnull'=>1, 'index'=>1, 'position'=>1, 'comment'=>'Id'),
|
||||
'lastname'=>array('type'=>'varchar(50)', 'label'=>'Name', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'showoncombobox'=>1, 'index'=>1, 'position'=>20, 'searchall'=>1, 'comment'=>'Reference of object'),
|
||||
@@ -1581,7 +1581,7 @@ class User extends CommonObject
|
||||
$action='update';
|
||||
|
||||
// Actions on extra fields
|
||||
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used
|
||||
if (! $error && empty($conf->global->MAIN_EXTRAFIELDS_DISABLED))
|
||||
{
|
||||
$result=$this->insertExtraFields();
|
||||
if ($result < 0)
|
||||
|
||||
Reference in New Issue
Block a user