mirror of https://github.com/nextcloud/contacts
Merge pull request #232 from owncloud/fix-not-grouped
Fix 'Not grouped' as default group when selected 'Not grouped'.
This commit is contained in:
commit
54a368a172
|
@ -127,7 +127,7 @@ angular.module('contactsApp')
|
|||
var defaultValue = vCardPropertiesService.getMeta(field).defaultValue || {value: ''};
|
||||
contact.addProperty(field, defaultValue);
|
||||
} );
|
||||
if ($routeParams.gid !== t('contacts', 'All contacts')) {
|
||||
if ([t('contacts', 'All contacts'), t('contacts', 'Not grouped')].indexOf($routeParams.gid) === -1) {
|
||||
contact.categories($routeParams.gid);
|
||||
} else {
|
||||
contact.categories('');
|
||||
|
|
Loading…
Reference in New Issue