Commit 3ab861a618c4531ee3cb8a056f08244e0b81f8b6
1 parent
f4c90b44
Get options by value, not position.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3755 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/js/conditional_simple_edit.js
| @@ -46,7 +46,7 @@ function setActiveLookupsForField(field_id, active_lookups) { | @@ -46,7 +46,7 @@ function setActiveLookupsForField(field_id, active_lookups) { | ||
| 46 | for (var i=0; i<item_list.options.length; i++) { | 46 | for (var i=0; i<item_list.options.length; i++) { |
| 47 | var option = item_list.options[i]; | 47 | var option = item_list.options[i]; |
| 48 | option.selected = false; | 48 | option.selected = false; |
| 49 | - if (active_hash[i]) { | 49 | + if (active_hash[option.value]) { |
| 50 | option.selected = true; | 50 | option.selected = true; |
| 51 | } | 51 | } |
| 52 | } | 52 | } |