Commit 3e39ba25 authored by Tristan Cavelier's avatar Tristan Cavelier

queries select assign undefined to unindexed metadata - fixed

parent 68e27ab3
......@@ -184,7 +184,9 @@ function select(select_option, list, clone) {
for (i = 0; i < list.length; i += 1) {
new_item = {};
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) {
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