mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 22:46:55 +00:00
fix showing community containers in the AIO interface and enabling or disabling them
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
0fe4ea3238
commit
8a6772bc05
4 changed files with 18 additions and 21 deletions
|
|
@ -126,7 +126,17 @@ readonly class ConfigurationController {
|
|||
}
|
||||
|
||||
if (isset($request->getParsedBody()['community-form'])) {
|
||||
$this->configurationManager->SetEnabledCommunityContainers($request->getParsedBody()['enabled-community'] ?? []);
|
||||
$cc = $this->configurationManager->listAvailableCommunityContainers();
|
||||
$enabledCC = [];
|
||||
/**
|
||||
* @psalm-suppress PossiblyNullIterator
|
||||
*/
|
||||
foreach ($request->getParsedBody() as $item) {
|
||||
if (array_key_exists($item , $cc)) {
|
||||
$enabledCC[] = $item;
|
||||
}
|
||||
}
|
||||
$this->configurationManager->SetEnabledCommunityContainers($enabledCC);
|
||||
}
|
||||
|
||||
if (isset($request->getParsedBody()['delete_collabora_dictionaries'])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue