Fix: For avoid conflicts with external modules
This commit is contained in:
parent
4388be7295
commit
a0bed6c47f
@ -42,7 +42,7 @@ class ExtraFields
|
||||
var $attribute_unique;
|
||||
// Array to store if attribute is required or not
|
||||
var $attribute_required;
|
||||
|
||||
|
||||
var $error;
|
||||
var $errno;
|
||||
|
||||
@ -439,6 +439,10 @@ class ExtraFields
|
||||
|
||||
$array_name_label=array();
|
||||
|
||||
// For avoid conflicts with external modules
|
||||
if (! empty($conf->global->MAIN_EXTRAFIELDS_DISABLED))
|
||||
return $array_name_label;
|
||||
|
||||
$sql = "SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."extrafields";
|
||||
$sql.= " WHERE entity = ".$conf->entity;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user