commit
a5757efd72
@ -245,10 +245,8 @@ if (empty($reshook)) {
|
|||||||
$nbok = 0;
|
$nbok = 0;
|
||||||
foreach ($toselect as $toselectid) {
|
foreach ($toselect as $toselectid) {
|
||||||
$result = $objecttmp->fetch($toselectid);
|
$result = $objecttmp->fetch($toselectid);
|
||||||
var_dump($objecttmp->status);
|
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
$result = $objecttmp->cancel($user, 0);
|
$result = $objecttmp->cancel($user, 0);
|
||||||
var_dump($result);
|
|
||||||
if ($result == 0) {
|
if ($result == 0) {
|
||||||
setEventMessages($langs->trans('StatusOfRefMustBe', $objecttmp->ref, $objecttmp->LibStatut($objecttmp::STATUS_APPROVED)), null, 'warnings');
|
setEventMessages($langs->trans('StatusOfRefMustBe', $objecttmp->ref, $objecttmp->LibStatut($objecttmp::STATUS_APPROVED)), null, 'warnings');
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user