1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Merge pull request #560 from AdamWill/536

correct selection of current type for multi-type parameters: #536
This commit is contained in:
Thomas Müller 2014-07-30 11:41:39 +02:00
commit 8311a3ab62

View File

@ -1452,7 +1452,7 @@ OC.Contacts = OC.Contacts || {};
}
else if(param.toUpperCase() === 'TYPE') {
for(var etype in property.parameters[param]) {
if(!property.parameters[param].hasOwnProperty(etype)) {
if(property.parameters[param].hasOwnProperty(etype)) {
var found = false;
var et = property.parameters[param][etype];
if(typeof et !== 'string') {