Try to fix #1044 by subquery inlining instead of CTE (#1046)

This commit is contained in:
Christian Ramseyer
2023-06-08 17:29:14 +02:00
committed by GitHub
parent 1aef847af3
commit 82dea7de2a
2 changed files with 12 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ get '/ajax/content/report/portvlanmismatch' => require_login sub {
my @results = schema(vars->{'tenant'})
->resultset('Virtual::PortVLANMismatch')->search({},{
bind => [ setting('sidebar_defaults')->{'device_ports'}->{'p_hide1002'}->{'default'}
? (1002, 1003, 1004, 1005) : (0, 0, 0, 0) ],
? (1002, 1003, 1004, 1005, 1002, 1003, 1004, 1005, 1002, 1003, 1004, 1005, 1002, 1003, 1004, 1005) : (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) ],
})
->hri->all;