Fixed select in modificar_agente.php

This commit is contained in:
manuel.montes 2018-06-08 14:09:59 +02:00
parent 937cfb7d1e
commit 17b2b01e7a
1 changed files with 2 additions and 2 deletions

View File

@ -177,11 +177,11 @@ echo "</td>";
echo "<td>";
echo __('Operative System') . '&nbsp;';
$pre_fields = db_get_all_rows_sql('select distinct(tagente.id_os),tconfig_os.description from tagente,tconfig_os where tagente.id_os = tconfig_os.id_os');
$pre_fields = db_get_all_rows_sql('select distinct(tagente.id_os),tconfig_os.name from tagente,tconfig_os where tagente.id_os = tconfig_os.id_os');
$fields = array();
foreach ($pre_fields as $key => $value) {
$fields[$value['id_os']] = $value['description'];
$fields[$value['id_os']] = $value['name'];
}
html_print_select($fields,"os",$os,'this.form.submit()','All',0);