Select item not working in purchase order and sales order entry. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 4 Jul 2021 06:51:30 +0000 (08:51 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 4 Jul 2021 06:51:30 +0000 (08:51 +0200)
includes/ui/ui_view.inc

index d4e1c50b1319ba45e72da2e57b5f799b57de947a..5f372546e8f3d4072aaccb34aa9c981b49f44abb 100644 (file)
@@ -925,7 +925,7 @@ function get_js_select_combo_item() {
                } else {                        
                        var stock_element = doc.getElementsByName('stock_id');
                if( stock_element.length > 0) {
-                               stock_element.value = value;    
+                               stock_element[0].value = value; 
                                var stock_id = doc.getElementById('_stock_id_edit'); 
                                stock_id.value=value;
                                stock_id.onblur();