From: Janusz Dobrowolski Date: Sat, 23 May 2009 10:40:42 +0000 (+0000) Subject: Fixed initial selection for array_selector. X-Git-Tag: 2.3-final~1248 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=a804ca4690907e9722ceff132cf8baa354f85420;p=fa-stable.git Fixed initial selection for array_selector. --- diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 90a9dc47..ee67891f 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -297,7 +297,7 @@ $opts = array( // default options //if($name=='SelectStockFromList') display_error($sql); foreach($items as $value=>$descr) { $sel = ''; - if ($selected_id == $value) { + if ((string)$selected_id === (string)$value) { $sel = 'selected'; $found = $value; }