mirror of https://github.com/nextcloud/contacts
Fix 'Not grouped' as default group when selected 'Not grouped'.
This commit is contained in:
parent
ee0c72660e
commit
5b116bba2f
|
@ -116,7 +116,7 @@ app.controller('contactlistCtrl', function($scope, $filter, $route, $routeParams
|
|||
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