From 8562906fa654e7049d9ecbaea223ad8621de90c6 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 27 Jan 2024 03:04:43 -0500 Subject: [PATCH] Prevent Copy to Clipboard button from submitting in assets since we wrapped listings in a form to allow for bulk actions this caused buttons like this to act as submits unless we add type='button' --- client_assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_assets.php b/client_assets.php index 45855636..2b894880 100644 --- a/client_assets.php +++ b/client_assets.php @@ -223,7 +223,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); if (empty($asset_ip)) { $asset_ip_display = "-"; } else { - $asset_ip_display = "$asset_ip"; + $asset_ip_display = "$asset_ip"; } $asset_nat_ip = nullable_htmlentities($row['asset_nat_ip']); $asset_mac = nullable_htmlentities($row['asset_mac']);