Fix 'Not grouped' as default group when selected 'Not grouped'.

This commit is contained in:
Alexander Weidinger 2016-03-18 15:43:21 +01:00
parent ee0c72660e
commit 5b116bba2f
1 changed files with 1 additions and 1 deletions

View File

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