mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
#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');
|
$("#module_name").trigger('change');
|
||||||
} else {
|
} else {
|
||||||
$("#module_name option").prop('selected', false);
|
$("#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") {
|
else if (this.id == "checkbox-recursion") {
|
||||||
$("#groups_select").trigger("change");
|
$("#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 = [];
|
$acltags = [];
|
||||||
foreach ($raw_acltags as $group => $taglist) {
|
foreach ($raw_acltags as $group => $taglist) {
|
||||||
if (empty($id_group) === false && array_key_exists($group, $id_group) === false) {
|
if ($return_mode === 'module_condition') {
|
||||||
continue;
|
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)) {
|
if (!empty($taglist)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user