From 61c5595a684967dd6b7e2a9a517d77ab4068d36d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 2 Feb 2026 16:05:38 -0500 Subject: [PATCH] Fix Get type on add asset --- agent/modals/asset/asset_add.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/agent/modals/asset/asset_add.php b/agent/modals/asset/asset_add.php index d94ee135..f75957b9 100644 --- a/agent/modals/asset/asset_add.php +++ b/agent/modals/asset/asset_add.php @@ -4,7 +4,7 @@ require_once '../../../includes/modal_header.php'; $client_id = intval($_GET['client_id'] ?? 0); $contact_id = intval($_GET['contact_id'] ?? 0); -$type = nullable_htmlentities($_GET['type'] ?? ''); +$type = nullable_htmlentities(ucwords($_GET['type']) ?? ''); if ($client_id) { $sql_network_select = mysqli_query($mysqli, "SELECT * FROM networks WHERE network_archived_at IS NULL AND network_client_id = $client_id ORDER BY network_name ASC"); @@ -33,7 +33,7 @@ ob_start(); ?> + if ($type !== 'Virtual') { ?>
@@ -165,7 +165,7 @@ ob_start();
- +
@@ -386,7 +386,7 @@ ob_start();
- +
@@ -418,7 +418,7 @@ ob_start();
- +