Merge pull request #5672 from annando/issue-5670

Issue 5670: Jump to the unassigned contacts
This commit is contained in:
Tobias Diekershoff 2018-08-26 11:50:26 +02:00 committed by GitHub
commit ff16a6a9d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,12 +84,12 @@ function group_content(App $a) {
return;
}
// Switch to text mode interface if we have more than 'n' contacts or group members
// With no group number provided we jump to the unassigned contacts as a starting point
if ($a->argc == 1) {
goaway(System::baseUrl() . '/contacts');
goaway('group/none');
}
// Switch to text mode interface if we have more than 'n' contacts or group members
$switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
if (is_null($switchtotext)) {
$switchtotext = Config::get('system', 'groupedit_image_limit', 400);