server: fix update property
This commit is contained in:
parent
7dd5fe8384
commit
81fd333672
|
@ -351,7 +351,7 @@ def add_part(part)
|
|||
ref = statement.execute(name.downcase).to_a[0]
|
||||
insert = @db.prepare("INSERT INTO property_value (property,part,value) VALUES (?,?,?)");
|
||||
values.each do |value|
|
||||
next if family and family["properties"] and family["properties"][name].include?(value)
|
||||
next if family and family["properties"] and family["properties"][name] and family["properties"][name].include?(value)
|
||||
insert.execute(ref["id"], part["id"], value)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue