FIX check commande liste validate (#35479)
This commit is contained in:
parent
6916ca7ac8
commit
35bb894393
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ if ($action == 'validate' && $permissiontoadd && $objectclass !== null) {
|
|||
} else {
|
||||
$idwarehouse = 0;
|
||||
}
|
||||
if ($objecttmp->valid($user, $idwarehouse)) {
|
||||
if ($objecttmp->valid($user, $idwarehouse) > 0) {
|
||||
setEventMessages($langs->trans('hasBeenValidated', $objecttmp->ref), null, 'mesgs');
|
||||
} else {
|
||||
setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
|
||||
|
|
|
|||
Loading…
Reference in a new issue