fix: restore filter Name and UserId after save/reload

The post-save redirect included filter query params in the URL, which
caused the view to populate from request data instead of loading from
the database. Since the querystring omitted Name and UserId, both
fields appeared empty/wrong after reload. Remove the querystring from
the redirect so the view loads the saved filter from the database.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Isaac Connor
2026-02-13 12:33:46 -05:00
parent d8f9e13804
commit e1effdb1c7

View File

@@ -112,7 +112,7 @@ if (isset($_REQUEST['object']) and ($_REQUEST['object'] == 'filter')) {
$filter->control('start');
}
global $redirect;
$redirect = '?view=filter&Id='.$_REQUEST['Id'].$filter->querystring('filter', '&');
$redirect = '?view=filter&Id='.$_REQUEST['Id'];
} else if ($action == 'control') {
if ( $_REQUEST['command'] == 'start'