From cd030620b20d9ffab5b1acd0b29d286c2fa4417f Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 12 Apr 2023 15:51:02 +0200 Subject: [PATCH] #10909 Fix icon group 4 --- pandora_console/include/javascript/tree/TreeController.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandora_console/include/javascript/tree/TreeController.js b/pandora_console/include/javascript/tree/TreeController.js index 841e48dbe1..39b97c9c81 100644 --- a/pandora_console/include/javascript/tree/TreeController.js +++ b/pandora_console/include/javascript/tree/TreeController.js @@ -652,12 +652,19 @@ var TreeController = { typeof element.icon != "undefined" && element.icon.length > 0 ) { + var extension = element.icon.split(".").pop(); + if (extension === element.icon) { + element.icon = element.icon + ".png"; + } $content.append( '
' );