Merge branch 'ent-13634-17448-error-500-llamada-api-planned_downtimes_deleted' into 'develop'

Ent 13634 17448 error 500 llamada api planned downtimes deleted

See merge request artica/pandorafms!7318
This commit is contained in:
Diego Muñoz-Reja 2024-04-30 11:59:56 +00:00
commit 656ceb25c6
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.");