Skip to content

Commit

Permalink
QA: Assign a filter to the content and save host_template_id
Browse files Browse the repository at this point in the history
* This allows the UI to remember the last host template id that was used for the last device creation.
  • Loading branch information
TheWitness committed Dec 22, 2024
1 parent 9eaff9d commit 219586f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions host.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
)
),
Expand Down

0 comments on commit 219586f

Please sign in to comment.