Merge branch '696-wrong-id-in-export-server-id-in-module-massive-operations-dev' into 'develop'

Fixed wrong ids

See merge request !507
This commit is contained in:
vgilc 2017-05-25 16:56:52 +02:00
commit 1ba43f4661
1 changed files with 7 additions and 1 deletions

View File

@ -533,7 +533,13 @@ $table->data['edit6'][0] = __('Export target');
$targets2 = db_get_all_rows_sql ("SELECT id, name FROM tserver_export ORDER by name");
if ($targets2 === false)
$targets2 = array();
$targets = array_merge(array(0 => __('None')), $targets2 );
$targets = array();
$targets[0] = __('None');
foreach ($targets2 as $t) {
$targets[$t['id']] = $t['name'];
}
$table->data['edit6'][1] = html_print_select ($targets, 'id_export', '','', __('No change'), '', true, false, false);
$table->data['edit6'][2] = __('Unit');
$table->data['edit6'][3] = html_print_input_text ('unit', '', '', 15, 60, true);