Update card.php

This commit is contained in:
Frédéric FRANCE 2022-03-17 10:56:14 +01:00 committed by GitHub
parent 3dfd92e9c0
commit 53909828f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,8 +217,8 @@ if (empty($reshook)) {
if (!empty($conf->multicompany->enabled) && !empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
$object->entity = 0;
} else {
$object->entity = GETPOSTISSET("entity") ? GETPOST("entity") : $conf->entity;
} elseif (GETPOSTISSET("entity")) {
$object->entity = GETPOST("entity", "int");
}
$ret = $object->update();