From d5a4d4dfe32202d3385be8c932ed605f7394535c Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 20 Feb 2026 17:55:14 -0700 Subject: [PATCH] Devices - List/Edit: Maintain search, order by and page values through update. (Part 1) --- app/devices/devices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/devices/devices.php b/app/devices/devices.php index c636768752..26c571936b 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -71,7 +71,7 @@ break; } - header('Location: devices.php'.($search != '' ? '?search='.urlencode($search).'&fields='.urlencode($fields) : null)); + header('Location: devices.php'.(!empty($search) ? '?search='.urlencode($search).'&fields='.urlencode($fields) : null)); exit; } @@ -435,7 +435,7 @@ $list_row_url = ''; if (permission_exists('device_edit')) { - $list_row_url = "device_edit.php?id=".urlencode($row['device_uuid']); + $list_row_url = "device_edit.php?id=".urlencode($row['device_uuid']).(!empty($order_by) ? '&order_by='.$order_by.'&order='.$order : null).(is_numeric($page) ? '&page='.urlencode($page) : null).(!empty($search) ? '&search='.$search : null); if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) { $list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true'; }