From 809d7fe24c6be10a77d65e235db677a6e3b8eccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 6 Jun 2017 16:21:38 +0200 Subject: [PATCH] Fixes #5347 Using a separate icon for templates in objects list --- include/class_IconTheme.inc | 3 +++ include/simpleplugin/class_simpleManagement.inc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/class_IconTheme.inc b/include/class_IconTheme.inc index c3a9d8bf4..5be5c0c6a 100644 --- a/include/class_IconTheme.inc +++ b/include/class_IconTheme.inc @@ -374,6 +374,9 @@ class IconTheme array('applications','os-windows'), array('applications','windows'), ), + 'devices/template' => array( + array('actions','document-new'), + ), 'status/object-locked' => array( array('status','changes-prevent'), ), diff --git a/include/simpleplugin/class_simpleManagement.inc b/include/simpleplugin/class_simpleManagement.inc index a2a23fd95..f28a0c4c9 100644 --- a/include/simpleplugin/class_simpleManagement.inc +++ b/include/simpleplugin/class_simpleManagement.inc @@ -278,7 +278,7 @@ class simpleManagement $this->headpage->xmlData['actionmenu']['action'][0]['action'] = array( array( 'type' => 'sub', - 'image' => 'geticon.php?context=actions&icon=document-new&size=16', + 'image' => 'geticon.php?context=devices&icon=template&size=16', 'label' => _('Template'), 'action' => array(), ), @@ -316,7 +316,7 @@ class simpleManagement 'label' => sprintf(_('%s template'), $i['name']), 'category' => $i['aclCategory'], 'class' => 'template', - 'image' => $i['icon'], + 'image' => 'geticon.php?context=devices&icon=template&size=16', 'filter' => new ldapFilter( '&', -- GitLab