From 28ced698320a6253a67ba580eaaa47612e8d9a71 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 28 Dec 2015 16:39:12 +0000 Subject: [PATCH] Add default icons where type / status do not have their own --- infolog/inc/class.infolog_ui.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index bda2f25712..dff53bd1c2 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1044,9 +1044,11 @@ class infolog_ui foreach($types as $type => &$data) { if ($type=='email') continue;//requirement by sales that it should not be shown in right - click - action dialog + + $image_exists = common::image('infolog',$type); $data = array( 'caption' => $data, - 'icon' => $type, + 'icon' => $image_exists ? $type : 'infolog/navbar', ); $types_add[$type] = $data + array( 'onExecute' => "javaScript:app.infolog.add_action_handler" @@ -1057,9 +1059,10 @@ class infolog_ui $statis = $this->bo->get_status($query['col_filter']['info_type'], $icons); foreach($statis as $type => &$data) { + $image_exists = common::image('infolog',$icons[$type]); $data = array( 'caption' => $data, - 'icon' => $icons[$type], + 'icon' => $image_exists ? $icons[$type] : 'infolog/status', ); }