From 219586fff6d9758d39143fffc5223da653d88e0b Mon Sep 17 00:00:00 2001 From: TheWitness Date: Sun, 22 Dec 2024 09:31:16 -0500 Subject: [PATCH] QA: Assign a filter to the content and save host_template_id * This allows the UI to remember the last host template id that was used for the last device creation. --- host.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host.php b/host.php index 5aa5bd600c..9878e0da34 100644 --- a/host.php +++ b/host.php @@ -706,12 +706,18 @@ function create_host_edit_filter($host, $content = '') { array( 'pingdata' => array( 'method' => 'content', + 'filter' => FILTER_DEFAULT, 'content' => $content, ), 'id' => array( 'method' => 'validate', 'filter' => FILTER_VALIDATE_INT, 'default' => '', + ), + 'host_template_id' => array( + 'method' => 'validate', + 'filter' => FILTER_VALIDATE_INT, + 'default' => '0' ) ) ),