Skip to content

Commit

Permalink
fix: configuration settings not applied on save
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8b committed Dec 5, 2022
1 parent 76660e2 commit b3ae5cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/sqlexplorer.config.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ function submitModuleConfig(overlay) {
else {
overlayDialogueDestroy(overlay.dialogueid);
Object.entries(json.params).forEach(([key, value]) => {
document.querySelector(`[type="hidden"][name="${key}"]`).value = value;
let input = document.querySelector(`[type="hidden"][name="${key}"]`);
if (input !== null) {
input.value = json.params[key];
}
});
}
})
Expand Down

0 comments on commit b3ae5cc

Please sign in to comment.