Merge branch 'ent-fix-planned-downtime' into 'develop'

Fixed problems in planned downtime

See merge request artica/pandorafms!4181
This commit is contained in:
Daniel Rodriguez 2021-06-09 10:49:48 +00:00
commit 79499204ce
2 changed files with 16 additions and 2 deletions

View File

@ -1015,7 +1015,21 @@ $table->data['module'][1] = "
'',
'',
0,
true
true,
false,
true,
'',
false,
false,
false,
false,
false,
'',
false,
false,
false,
false,
false
)."</td>
<td class='datos2 button_cell' style='text-align: right; width:10%;' id=''>".'<div id="add_button_div">'.'<a class="add_button" href="">'.html_print_image(
'images/add.png',

View File

@ -65,7 +65,7 @@ if ($get_modules_downtime) {
$downtime_module_ids = extract_column($downtime_modules, 'id_agent_module');
$downtime_modules = array_fill_keys($downtime_module_ids, true);
$filter = ['id_agente' => $id_agent];
$filter = ['id_agente' => $id_agent, 'delete_pending' => 0];
$modules = db_get_all_rows_filter('tagente_modulo', $filter);
if (empty($modules)) {
$modules = [];