2012-12-11 Sergio Martin <sergio.martin@artica.es>
* include/functions_network_components.php: Improve network component retrieving to get the category name too git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6851da50c3
commit
6573f7a72b
|
@ -1,3 +1,8 @@
|
|||
2012-12-11 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_network_components.php: Improve
|
||||
network component retrieving to get the category name too
|
||||
|
||||
2012-12-11 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor_common.php
|
||||
|
|
|
@ -222,7 +222,13 @@ function network_components_get_network_component ($id_network_component, $filte
|
|||
$filter = array ();
|
||||
$filter['id_nc'] = (int) $id_network_component;
|
||||
|
||||
return db_get_row_filter ('tnetwork_component', $filter, $fields);
|
||||
$network_component = db_get_row_filter ('tnetwork_component', $filter, $fields);
|
||||
|
||||
if(!empty($network_component) && $network_component['id_category'] != 0) {
|
||||
$network_component['category_name'] = (string) db_get_value('name','tcategory','id',$network_component['id_category']);
|
||||
}
|
||||
|
||||
return $network_component;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue