#11687 fix errors agents and checks
This commit is contained in:
parent
8b0c9af7a8
commit
eada8e0652
|
@ -654,7 +654,9 @@ $(document).ready (function () {
|
|||
$("#module_name").trigger('change');
|
||||
} else {
|
||||
$("#module_name option").prop('selected', false);
|
||||
$("#module_name").trigger('change');
|
||||
if ($('#agents_selection_mode :selected').val() === 'all'){
|
||||
$("#module_name").trigger('change');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -797,14 +799,6 @@ $(document).ready (function () {
|
|||
else if (this.id == "checkbox-recursion") {
|
||||
$("#groups_select").trigger("change");
|
||||
}
|
||||
else {
|
||||
if (this.checked) {
|
||||
$(".select_agents_row_2").css('display', 'none');
|
||||
}
|
||||
else {
|
||||
$(".select_agents_row_2").css('display', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -795,8 +795,14 @@ function tags_get_acl_tags(
|
|||
|
||||
$acltags = [];
|
||||
foreach ($raw_acltags as $group => $taglist) {
|
||||
if (empty($id_group) === false && array_key_exists($group, $id_group) === false) {
|
||||
continue;
|
||||
if ($return_mode === 'module_condition') {
|
||||
if (!empty($id_group) && !in_array($group, $id_group)) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if (empty($id_group) === false && array_key_exists($group, $id_group) === false) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($taglist)) {
|
||||
|
|
Loading…
Reference in New Issue