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:
parent
eb8b6af820
commit
e8773cd627
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user