Geräte: Suche bezieht Modell/Hersteller mit ein

Client-Filter (Gruppen-Modus): Haystack um Manufacturer/Model erweitert.
Server-Suche (alle Geräte): zusätzliche abgesicherte contains(model/manufacturer)-
Teilabfrage, gemerged mit Name-/Serial-Treffern; bricht nicht, wenn das
DeviceFE-Backend contains nicht unterstützt. Suchfeld-Platzhalter ergänzt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
marcoandClaude Opus 4.8 committed 2026-11-09 12:34:02 +01:00
1 parent d19bf99e63
commit 15441eab35
3 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -5846,7 +5846,7 @@ function devPassesFilters(d, q, os, cmp) {
if (os && !(d.OS || '').toLowerCase().includes(os.toLowerCase())) return false;
if (cmp && (d.ComplianceState || '') !== cmp) return false;
if (q) {
const hay = `${d.DeviceName || ''} ${d.UserDisplayName || ''} ${d.UserPrincipalName || ''} ${d.SerialNumber || ''}`.toLowerCase();
const hay = `${d.DeviceName || ''} ${d.UserDisplayName || ''} ${d.UserPrincipalName || ''} ${d.SerialNumber || ''} ${d.Manufacturer || ''} ${d.Model || ''}`.toLowerCase();
if (!hay.includes(q)) return false;
}
return true;