#8039 Fixed network link

This commit is contained in:
Daniel Maya 2021-10-07 10:27:31 +02:00
parent c7face04e1
commit e9b6acc1a8
2 changed files with 21 additions and 3 deletions

View File

@ -306,6 +306,16 @@ foreach ($layoutDatas as $layoutData) {
break;
case NETWORK_LINK:
$table->data[($i + 1)]['icon'] = html_print_image(
'images/network_link_item.png',
true,
[
'title' => __('Network link'),
'class' => 'invert_filter',
]
);
break;
case LINE_ITEM:
$table->data[($i + 1)]['icon'] = html_print_image(
'images/line_item.png',

View File

@ -433,7 +433,10 @@ switch ($activeTab) {
$idsElements = db_get_all_rows_filter(
'tlayout_data',
['id_layout' => $idVisualConsole],
['id']
[
'id',
'type',
]
);
if ($idsElements === false) {
@ -449,8 +452,13 @@ switch ($activeTab) {
$values['height'] = get_parameter('height_'.$id, 0);
$values['pos_x'] = get_parameter('left_'.$id, 0);
$values['pos_y'] = get_parameter('top_'.$id, 0);
$type = db_get_value('type', 'tlayout_data', 'id', $id);
switch ($type) {
switch ($idElement['type']) {
case NETWORK_LINK:
case LINE_ITEM:
continue 2;
break;
case MODULE_GRAPH:
case SIMPLE_VALUE_MAX:
case SIMPLE_VALUE_MIN: