All *_list() functions now does not display html directly - added echo when needed.
[fa-stable.git] / gl / includes / ui / gl_bank_ui.inc
index 4014426e97c47e492212225df99a390082e3ae15..46408216862749dd478d5064e7ad4f01f2976b99 100644 (file)
@@ -197,7 +197,7 @@ function gl_edit_item_controls(&$order, $dim, $Index=null)
                $_POST['LineMemo'] = $item->reference;
 
                hidden('Index', $id);
-               gl_all_accounts_list('code_id', null, true, true);
+               echo gl_all_accounts_list('code_id', null, true, true);
                if ($dim >= 1)
                        dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
                if ($dim > 1)
@@ -230,7 +230,7 @@ function gl_edit_item_controls(&$order, $dim, $Index=null)
                        $_POST['code_id'] =
                                get_company_pref($payment ? 'default_cogs_act':'default_inv_sales_act');
                }
-               gl_all_accounts_list('code_id', null, true, true);
+               echo gl_all_accounts_list('code_id', null, true, true);
                if ($dim >= 1)
                        dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
                if ($dim > 1)