mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix: Space homepage doesn't allow custom pages on first position
This commit is contained in:
parent
b9c7817485
commit
f213698fb5
@ -34,6 +34,8 @@ HumHub Change Log
|
||||
- Enh: Added Twig template engine for usage in modules
|
||||
- Enh: Added id data attribute on contentcontainer links
|
||||
- Fix: Wrong permission check on force invite check
|
||||
- Fix: Space homepage doesn't allow custom pages on first position
|
||||
|
||||
|
||||
1.3.0-beta.1 (July 4, 2018)
|
||||
----------------------------
|
||||
|
@ -18,6 +18,7 @@ use humhub\modules\space\modules\manage\components\Controller;
|
||||
use humhub\modules\space\modules\manage\models\DeleteForm;
|
||||
use humhub\modules\space\activities\SpaceArchieved;
|
||||
use humhub\modules\space\activities\SpaceUnArchieved;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/**
|
||||
* Default space admin action
|
||||
@ -70,9 +71,9 @@ class DefaultController extends Controller
|
||||
}
|
||||
|
||||
$indexModuleSelection = Menu::getAvailablePages();
|
||||
unset($indexModuleSelection[Url::to(['/space/home', 'container' => $space])]);
|
||||
|
||||
// To avoid infinit redirects of actionIndex we remove the stream value and set an empty selection instead
|
||||
array_shift($indexModuleSelection);
|
||||
$indexModuleSelection = ['' => Yii::t('SpaceModule.controllers_AdminController', 'Stream (Default)')] + $indexModuleSelection;
|
||||
|
||||
return $this->render('advanced', ['model' => $space, 'indexModuleSelection' => $indexModuleSelection]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user