13634-Fix endpoint api planned_downtimes_deleted

This commit is contained in:
Pablo Aragon 2024-04-29 15:55:06 +02:00
parent ed5ddc1799
commit 4c3ab95e3f
1 changed files with 1 additions and 1 deletions

View File

@ -961,7 +961,7 @@ function planned_downtimes_items($filter)
function delete_planned_downtimes($filter)
{
$downtime_execute = db_get_row_filter('tplanned_downtime', ['id' => $filter['id_downtime']], 'execute');
$downtime_execute = db_get_row_filter('tplanned_downtime', ['id' => $filter['id_downtime']], 'executed');
if ($downtime_execute) {
$return = __("This scheduled downtime are executed now. Can't delete in this moment.");