fix warning
This commit is contained in:
parent
7d07da527d
commit
cb8e1ce8f0
@ -110,7 +110,7 @@ if ($action == 'add' && !empty($permissiontoadd)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validation of fields values
|
// Validation of fields values
|
||||||
if ($conf->global->MAIN_FEATURE_LEVEL >= 2 || !empty($conf->global->MAIN_ACTIVATE_VALIDATION_RESULT)) {
|
if (getDolGlobalInt('MAIN_FEATURE_LEVEL') >= 2 || !empty($conf->global->MAIN_ACTIVATE_VALIDATION_RESULT)) {
|
||||||
if (!$error && !empty($val['validate']) && is_callable(array($object, 'validateField'))) {
|
if (!$error && !empty($val['validate']) && is_callable(array($object, 'validateField'))) {
|
||||||
if (!$object->validateField($object->fields, $key, $value)) {
|
if (!$object->validateField($object->fields, $key, $value)) {
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user