Merge pull request #20451 from frederic34/patch-1

remove debug
This commit is contained in:
Laurent Destailleur 2022-03-24 11:54:02 +01:00 committed by GitHub
commit a5757efd72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,10 +245,8 @@ if (empty($reshook)) {
$nbok = 0;
foreach ($toselect as $toselectid) {
$result = $objecttmp->fetch($toselectid);
var_dump($objecttmp->status);
if ($result > 0) {
$result = $objecttmp->cancel($user, 0);
var_dump($result);
if ($result == 0) {
setEventMessages($langs->trans('StatusOfRefMustBe', $objecttmp->ref, $objecttmp->LibStatut($objecttmp::STATUS_APPROVED)), null, 'warnings');
$error++;