#11771 Fixed plugin type fields

This commit is contained in:
Jorge Rincon 2023-07-28 14:03:24 +02:00
parent 319a4e1743
commit 89f604a602
1 changed files with 4 additions and 2 deletions

View File

@ -159,7 +159,7 @@ foreach ($password_fields as $k => $p) {
return;
}
const moduleId = <?php echo $id_agent_module; ?>;
const moduleId = <?php echo $module['id']; ?>;
load_plugin_description($("#id_plugin").val());
@ -171,6 +171,8 @@ foreach ($password_fields as $k => $p) {
}
$(document).ready(function () {
changePluginSelect();
if ($("#id_plugin").val() === 0) {
changePluginSelect();
}
});
</script>