Merge branch 'bugfix/pop-network-id' into 'master'

Fixed Issue when creating a Pop from /Network with network_id that the network is not selected

See merge request fronk/thetool!398
This commit is contained in:
Luca Haid
2024-06-11 11:05:17 +00:00

View File

@@ -184,6 +184,17 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
$(this).off('wheel.disableScroll')
});
$(".select2").select2();
// network_id // owner_id
// if get parameter network_id is set, select it if found
const urlParams = new URLSearchParams(window.location.search);
const network_id = urlParams.get('network_id');
if(network_id) {
console.log("network_id", network_id);
$("#owner_id").val(network_id).trigger('change');
}
</script>
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>