Commit 0f6ab483 authored by Tristan Cavelier's avatar Tristan Cavelier

complex_queries.js updated

parent 9cc2f37f
...@@ -1538,7 +1538,9 @@ function select(select_option, list, clone) { ...@@ -1538,7 +1538,9 @@ function select(select_option, list, clone) {
for (i = 0; i < list.length; i += 1) { for (i = 0; i < list.length; i += 1) {
new_item = {}; new_item = {};
for (j = 0; j < select_option.length; j += 1) { for (j = 0; j < select_option.length; j += 1) {
new_item[select_option[j]] = list[i][select_option[j]]; if (list[i].hasOwnProperty([select_option[j]])) {
new_item[select_option[j]] = list[i][select_option[j]];
}
} }
for (j in new_item) { for (j in new_item) {
if (new_item.hasOwnProperty(j)) { if (new_item.hasOwnProperty(j)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment