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

This commit is contained in:
2024-06-11 12:14:27 +02:00
parent 549b050f0c
commit 9adb4dc44b

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"); ?>