fix: force generic icon on 'Other' category even when API provides linux_logo.png
VirtFusion API returns an 'Other' category with icon=linux_logo.png by default. Null out the icon in groupOsTemplates() so the JS SVG fallback renders instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -303,9 +303,10 @@ class Module
|
||||
if (count($catTemplates) <= 1) {
|
||||
$otherTemplates = array_merge($otherTemplates, $catTemplates);
|
||||
} else {
|
||||
$catName = $osCategory['name'] ?? 'Unknown';
|
||||
$categories[] = [
|
||||
'name' => $esc($osCategory['name'] ?? 'Unknown'),
|
||||
'icon' => $osCategory['icon'] ?? null,
|
||||
'name' => $esc($catName),
|
||||
'icon' => ($catName === 'Other') ? null : ($osCategory['icon'] ?? null),
|
||||
'templates' => $catTemplates,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user