forked from Wavyzz/dolibarr
Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -839,7 +839,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');
|
||||
|
||||
Reference in New Issue
Block a user