N°2611 - Make itop-portal-base module mandatory during setup

This commit is contained in:
Molkobain
2019-12-05 17:30:30 +01:00
parent d9e3684d3d
commit 0d1ca1bc0e

View File

@@ -1,4 +1,21 @@
<?php
/**
* Copyright (C) 2013-2019 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
/** @noinspection PhpUnhandledExceptionInspection */
SetupWebPage::AddModule(
@@ -10,8 +27,8 @@ SetupWebPage::AddModule(
// Setup
'dependencies' => array(
),
'mandatory' => false,
'visible' => true,
'mandatory' => true,
'visible' => false,
// Components
'datamodel' => array(
// Note: The autoloader is there instead of portal/config/bootstrap.php in order to be available for other modules with a dependency on this one.