1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

bug fix. splice call is supposed to remove "PREF" array element.

This commit is contained in:
Gerald Vogt 2015-07-15 18:14:33 +02:00
parent eb8b6af820
commit e8773cd627

View File

@ -529,7 +529,7 @@ OC.Contacts = OC.Contacts || {};
var parameters = self.parametersFor(obj); var parameters = self.parametersFor(obj);
if(parameters.TYPE && parameters.TYPE.indexOf('PREF') !== -1) { if(parameters.TYPE && parameters.TYPE.indexOf('PREF') !== -1) {
parameters.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') { if(checksum && checksum !== 'new') {
self.pushToUndo({ self.pushToUndo({