Excluded PENed templates from select

This commit is contained in:
fbsanchez 2020-04-06 18:26:55 +02:00
parent 890cfe68aa
commit 194c6d6a9a
1 changed files with 6 additions and 3 deletions

View File

@ -1042,9 +1042,12 @@ class HostDevices extends Wizard
'arguments' => [
'name' => 'id_network_profile[]',
'type' => 'select_from_sql',
'sql' => 'SELECT id_np, name
FROM tnetwork_profile
ORDER BY name',
'sql' => 'SELECT tn.id_np, tn.name
FROM tnetwork_profile tn
LEFT JOIN `tnetwork_profile_pen` tp
ON tp.id_np = tn.id_np
WHERE tp.id_np IS NULL
ORDER BY tn.name',
'return' => true,
'selected' => explode(
',',