diff --git a/js/contacts.js b/js/contacts.js index de68bfb3..78d749b0 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -529,7 +529,7 @@ OC.Contacts = OC.Contacts || {}; var parameters = self.parametersFor(obj); if(parameters.TYPE && parameters.TYPE.indexOf('PREF') !== -1) { parameters.PREF = 1; - parameters.TYPE.splice(parameters.TYPE.indexOf('PREF', 1)); + parameters.TYPE.splice(parameters.TYPE.indexOf('PREF'), 1); } if(checksum && checksum !== 'new') { self.pushToUndo({