Fixed problem with multiply zero values in selector options.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 24 Mar 2010 08:25:59 +0000 (08:25 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 24 Mar 2010 08:25:59 +0000 (08:25 +0000)
CHANGELOG.txt
includes/ui/ui_lists.inc

index f5adff05713fbe2d8654fcc7f57150770ce57611..b3ba4b8cfeda8c1a4aea4c12ed3260cbeb00351b 100644 (file)
@@ -19,7 +19,11 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+# Fixed problem with multiply zeros a value of option in list selectors
+$ /includes/ui/ui_lists.inc
+
 22-Mar-2010 Joe Hunt
+
 # Error editing (updating) Account Groups and problem
   with "00" == "0" in php.
 $ /gl/includes/db/gl_db_account_types.inc
index ca241361091c984b52ba9aab86e01998a43e4fea..bd1a446668e75d6066921a7b39255f47c7f0708f 100644 (file)
@@ -181,7 +181,8 @@ $opts = array(              // default options
                        if (get_post($search_button) && ($txt == $value)) {
                                $selected_id[] = $value;
                        }
-                       if (in_array($value, $selected_id)) {
+
+                       if (in_array((string)$value, $selected_id, TRUE)) {
                                $sel = 'selected';
                                $found = $value;
                                $edit = $opts['editable'] && $contact_row['editable']