Add option to change image when is service and fixed error when updated data. Tiquet: #2175

(cherry picked from commit 19abac33c1)
This commit is contained in:
m-lopez-f 2015-05-04 12:44:46 +02:00
parent d3701d34d8
commit 992b89537f
2 changed files with 2 additions and 1 deletions

View File

@ -188,6 +188,7 @@ foreach ($layoutDatas as $layoutData) {
case STATIC_GRAPH:
case ICON:
case GROUP_ITEM:
case SERVICE:
$table->data[$i + 1][1] =
html_print_select ($images_list,
'image_' . $idLayoutData, $layoutData['image'], '',

View File

@ -233,7 +233,7 @@ switch ($activeTab) {
$values['label_color'] = get_parameter('label_color_' . $id, '#000000');
if (enterprise_installed()) {
enterprise_visual_map_update_action_from_list_elements($type, $values);
enterprise_visual_map_update_action_from_list_elements($type, $values, $id);
}
db_process_sql_update('tlayout_data', $values, array('id' => $id));