fix CI in interface_50_modBlockedlog_ActionsBlockedLog.class.php

This commit is contained in:
Frédéric FRANCE 2026-05-28 14:09:32 +02:00 committed by GitHub
parent 6e38c8433c
commit 25eff32fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,6 +105,7 @@ class InterfaceActionsBlockedLog extends DolibarrTriggers
}
/** @var Facture|Don|Paiement|PaymentDonation|Subscription|PaymentVarious|CashControl $object */
if ($action === 'BILL_UNVALIDATE') {
if ($object->isEditable() <= 0) {
$this->errors[] = 'Modifying this invoice is not allowed';
@ -112,8 +113,6 @@ class InterfaceActionsBlockedLog extends DolibarrTriggers
}
}
/** @var Facture|Don|Paiement|PaymentDonation|Subscription|PaymentVarious|CashControl $object */
dol_syslog("Trigger '".$this->name."' for action '".$action."' launched by ".__FILE__.". id=".$object->id);
require_once DOL_DOCUMENT_ROOT.'/blockedlog/class/blockedlog.class.php';