Merge pull request #232 from owncloud/fix-not-grouped

Fix 'Not grouped' as default group when selected 'Not grouped'.
This commit is contained in:
Hendrik Leppelsack 2016-03-20 16:34:11 +01:00
commit 54a368a172
1 changed files with 1 additions and 1 deletions

View File

@ -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('');