Add order in parent select in static graph in visual console, Tiquet: #2067

This commit is contained in:
m-lopez-f 2015-04-06 10:25:03 +02:00
parent 3cd52be7e9
commit 790c81a250
2 changed files with 3 additions and 2 deletions

View File

@ -1080,7 +1080,7 @@ function cleanFields(item) {
tinymce.get('text-label').setContent("(_VALUE_)");
}
fill_parent_select();
//fill_parent_select();
var anyText = $("#any_text").html(); //Trick for catch the translate text.
$("#module")

View File

@ -2086,7 +2086,8 @@ function visual_map_create_internal_name_item($label = null, $type, $image, $age
}
function visual_map_get_items_parents($idVisual) {
$items = db_get_all_rows_filter('tlayout_data',array('id_layout' => $idVisual));
$items = db_get_all_rows_sql(sprintf("SELECT * FROM tlayout_data where id_layout = %s order by label",$idVisual));
//$items = db_get_all_fields_in_table('tlayout_data',array('id_layout' => $idVisual));
if ($items == false) {
$items = array();
}