Finished ajax improvements to sales & purchase modules,
[fa-stable.git] / includes / ui / ui_lists.inc
index 6766415e767ac7a131078802d159e597561812db..1176cc5f8d538dff76d8e7a721a21c729c6080af 100644 (file)
@@ -136,7 +136,7 @@ $opts = array(              // default options
                        $descr = $opts['format']==null ?  $contact_row[1] :
                        call_user_func($opts['format'], $contact_row);
                        $sel = '';
-                       if ($selected_id === $value) {
+                       if ((string)($selected_id) === $value) {
                                $sel = 'selected';
                                $found = $value;
                        }
@@ -356,8 +356,7 @@ return combo_input($name, $selected_id, $sql, 'loc_code', 'location_name',
        array(
                'spec_option' => $all_option === true ? _("All Locations") : $all_option,
                'spec_id' => $all_items,
-               'select_submit'=> $submit_on_change,
-               'async' => false
+               'select_submit'=> $submit_on_change
        ) );
 }