mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Compare commits
8 Commits
3.2.0-beta
...
2.7.11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8cb701bda3 | ||
|
|
1b29746806 | ||
|
|
fb9c317256 | ||
|
|
0904a21e3f | ||
|
|
82d11eeb47 | ||
|
|
142d6c8993 | ||
|
|
320922a13d | ||
|
|
f03d731b1d |
16
.github/workflows/action.yml
vendored
Normal file
16
.github/workflows/action.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: Add PRs to Combodo PRs Dashboard
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-to-project:
|
||||||
|
name: Add PR to Combodo Project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/add-to-project@v1.0.2
|
||||||
|
with:
|
||||||
|
project-url: https://github.com/orgs/Combodo/projects/5
|
||||||
|
github-token: ${{ secrets.PR_AUTOMATICALLY_ADD_TO_PROJECT }}
|
||||||
@@ -14,7 +14,7 @@ define('APPCONF', APPROOT.'conf/');
|
|||||||
* @used-by utils::GetItopVersionWikiSyntax()
|
* @used-by utils::GetItopVersionWikiSyntax()
|
||||||
* @used-by iTopModulesPhpVersionIntegrationTest
|
* @used-by iTopModulesPhpVersionIntegrationTest
|
||||||
*/
|
*/
|
||||||
define('ITOP_CORE_VERSION', '2.7.10');
|
define('ITOP_CORE_VERSION', '2.7.11');
|
||||||
|
|
||||||
|
|
||||||
require_once APPROOT.'bootstrap.inc.php';
|
require_once APPROOT.'bootstrap.inc.php';
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class MySQLHasGoneAwayException extends MySQLException
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
2006,
|
2006,
|
||||||
2013
|
2013,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1296,8 +1296,8 @@ class CMDBSource
|
|||||||
*/
|
*/
|
||||||
public static function IsSameFieldTypes($sItopGeneratedFieldType, $sDbFieldType)
|
public static function IsSameFieldTypes($sItopGeneratedFieldType, $sDbFieldType)
|
||||||
{
|
{
|
||||||
list($sItopFieldDataType, $sItopFieldTypeOptions, $sItopFieldOtherOptions) = static::GetFieldDataTypeAndOptions($sItopGeneratedFieldType);
|
[$sItopFieldDataType, $sItopFieldTypeOptions, $sItopFieldOtherOptions] = static::GetFieldDataTypeAndOptions($sItopGeneratedFieldType);
|
||||||
list($sDbFieldDataType, $sDbFieldTypeOptions, $sDbFieldOtherOptions) = static::GetFieldDataTypeAndOptions($sDbFieldType);
|
[$sDbFieldDataType, $sDbFieldTypeOptions, $sDbFieldOtherOptions] = static::GetFieldDataTypeAndOptions($sDbFieldType);
|
||||||
|
|
||||||
if (strcasecmp($sItopFieldDataType, $sDbFieldDataType) !== 0)
|
if (strcasecmp($sItopFieldDataType, $sDbFieldDataType) !== 0)
|
||||||
{
|
{
|
||||||
@@ -1734,8 +1734,20 @@ class CMDBSource
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public static function GetClusterNb()
|
||||||
* @return string query to upgrade database charset and collation if needed, null if not
|
{
|
||||||
|
$result = 0;
|
||||||
|
$sSql = "SHOW STATUS LIKE 'wsrep_cluster_size';";
|
||||||
|
$aRows = self::QueryToArray($sSql);
|
||||||
|
if (count($aRows) > 0)
|
||||||
|
{
|
||||||
|
$result = $aRows[0]['Value'];
|
||||||
|
}
|
||||||
|
return intval($result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string query to upgrade database charset and collation if needed, null if not
|
||||||
* @throws \MySQLException
|
* @throws \MySQLException
|
||||||
*
|
*
|
||||||
* @since 2.5.0 N°1001 switch to utf8mb4
|
* @since 2.5.0 N°1001 switch to utf8mb4
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Beware the version number MUST be enclosed with quotes otherwise v2.3.0 becomes v2 0.3 .0
|
// Beware the version number MUST be enclosed with quotes otherwise v2.3.0 becomes v2 0.3 .0
|
||||||
$version: "v2.7.10";
|
$version: "v2.7.11";
|
||||||
$approot-relative: "../../../../../" !default; // relative to env-***/branding/themes/***/main.css
|
$approot-relative: "../../../../../" !default; // relative to env-***/branding/themes/***/main.css
|
||||||
|
|
||||||
// Base colors
|
// Base colors
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'authent-cas/2.7.10',
|
'authent-cas/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'authent-external/2.7.10',
|
'authent-external/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ if (function_exists('ldap_connect'))
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'authent-ldap/2.7.10',
|
'authent-ldap/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'authent-local/2.7.10',
|
'authent-local/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'combodo-db-tools/2.7.10',
|
'combodo-db-tools/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-attachments/2.7.10',
|
'itop-attachments/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-backup/2.7.10',
|
'itop-backup/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-bridge-virtualization-storage/2.7.10',
|
'itop-bridge-virtualization-storage/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-change-mgmt-itil/2.7.10',
|
'itop-change-mgmt-itil/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-change-mgmt/2.7.10',
|
'itop-change-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-config-mgmt/2.7.10',
|
'itop-config-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-config/2.7.10',
|
'itop-config/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-core-update/2.7.10',
|
'itop-core-update/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-datacenter-mgmt/2.7.10',
|
'itop-datacenter-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-endusers-devices/2.7.10',
|
'itop-endusers-devices/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-files-information/2.7.10',
|
'itop-files-information/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-full-itil/2.7.10',
|
'itop-full-itil/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-hub-connector/2.7.10',
|
'itop-hub-connector/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-incident-mgmt-itil/2.7.10',
|
'itop-incident-mgmt-itil/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-knownerror-mgmt/2.7.10',
|
'itop-knownerror-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-oauth-client/2.7.10',
|
'itop-oauth-client/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-portal-base/2.7.10', array(
|
'itop-portal-base/2.7.11', array(
|
||||||
// Identification
|
// Identification
|
||||||
'label' => 'Portal Development Library',
|
'label' => 'Portal Development Library',
|
||||||
'category' => 'Portal',
|
'category' => 'Portal',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -464,8 +464,8 @@
|
|||||||
sBody = '{{ 'Error:XHR:Fail'|dict_format(constant('ITOP_APPLICATION_SHORT'))|escape('js') }}';
|
sBody = '{{ 'Error:XHR:Fail'|dict_format(constant('ITOP_APPLICATION_SHORT'))|escape('js') }}';
|
||||||
}
|
}
|
||||||
var oModalElem = $('#modal-for-alert');
|
var oModalElem = $('#modal-for-alert');
|
||||||
oModalElem.find('.modal-content .modal-header .modal-title').html(sTitle);
|
oModalElem.find('.modal-content .modal-header .modal-title').text(sTitle);
|
||||||
oModalElem.find('.modal-content .modal-body .alert').addClass('alert-danger').html(sBody);
|
oModalElem.find('.modal-content .modal-body .alert').addClass('alert-danger').text(sBody);
|
||||||
oModalElem.modal('show');
|
oModalElem.modal('show');
|
||||||
};
|
};
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-portal/2.7.10', array(
|
'itop-portal/2.7.11', array(
|
||||||
// Identification
|
// Identification
|
||||||
'label' => 'Enhanced Customer Portal',
|
'label' => 'Enhanced Customer Portal',
|
||||||
'category' => 'Portal',
|
'category' => 'Portal',
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-problem-mgmt/2.7.10',
|
'itop-problem-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-profiles-itil/2.7.10',
|
'itop-profiles-itil/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-request-mgmt-itil/2.7.10',
|
'itop-request-mgmt-itil/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-request-mgmt/2.7.10',
|
'itop-request-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-service-mgmt-provider/2.7.10',
|
'itop-service-mgmt-provider/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-service-mgmt/2.7.10',
|
'itop-service-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-sla-computation/2.7.10',
|
'itop-sla-computation/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-storage-mgmt/2.7.10',
|
'itop-storage-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__,
|
__FILE__,
|
||||||
'itop-tickets/2.7.10',
|
'itop-tickets/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-virtualization-mgmt/2.7.10',
|
'itop-virtualization-mgmt/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
SetupWebPage::AddModule(
|
SetupWebPage::AddModule(
|
||||||
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
|
||||||
'itop-welcome-itil/2.7.10',
|
'itop-welcome-itil/2.7.11',
|
||||||
array(
|
array(
|
||||||
// Identification
|
// Identification
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<information>
|
<information>
|
||||||
<version>2.7.10</version>
|
<version>2.7.11</version>
|
||||||
</information>
|
</information>
|
||||||
|
|||||||
@@ -1230,6 +1230,12 @@ EOF
|
|||||||
$aResult['checks'][] = new CheckResult(CheckResult::INFO, "MySQL server's max_connections is set to $iMaxConnections.");
|
$aResult['checks'][] = new CheckResult(CheckResult::INFO, "MySQL server's max_connections is set to $iMaxConnections.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$iClusters = $oDBSource->GetClusterNb();
|
||||||
|
if ($iClusters > 0) {
|
||||||
|
SetupLog::Warning('Warning - Using Galera will cause malfunctions and data corruptions. Combodo does not support this type of infrastructure.');
|
||||||
|
$aResult['checks'][] = new CheckResult(CheckResult::WARNING, 'Using Galera will cause malfunctions and data corruptions. Combodo does not support this type of infrastructure.');
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$aResult['databases'] = $oDBSource->ListDB();
|
$aResult['databases'] = $oDBSource->ListDB();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,23 +85,6 @@ abstract class ItopTestCase extends TestCase
|
|||||||
require_once APPROOT . $sFileRelPath;
|
require_once APPROOT . $sFileRelPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper to load a module file. The caller test must be in that module !
|
|
||||||
* Will browse dir up to find a module.*.php
|
|
||||||
*
|
|
||||||
* @param string $sFileRelPath for example 'portal/src/Helper/ApplicationHelper.php'
|
|
||||||
* @since 2.7.10 3.1.1 3.2.0 N°6709 method creation
|
|
||||||
*/
|
|
||||||
protected function RequireOnceCurrentModuleFile(string $sFileRelPath): void
|
|
||||||
{
|
|
||||||
$aStack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
|
|
||||||
$sCallerFileFullPath = $aStack[0]['file'];
|
|
||||||
$sCallerDir = dirname($sCallerFileFullPath);
|
|
||||||
|
|
||||||
$sModuleRootPath = static::GetFirstDirUpContainingFile($sCallerDir, 'module.*.php');
|
|
||||||
require_once $sModuleRootPath . $sFileRelPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Require once a unit test file (eg. a mock class) from its relative path from the *current* dir.
|
* Require once a unit test file (eg. a mock class) from its relative path from the *current* dir.
|
||||||
* This ensure that required files don't crash when unit tests dir is moved in the iTop structure (see N°5608)
|
* This ensure that required files don't crash when unit tests dir is moved in the iTop structure (see N°5608)
|
||||||
@@ -119,26 +102,6 @@ abstract class ItopTestCase extends TestCase
|
|||||||
require_once $sCallerDirAbsPath . DIRECTORY_SEPARATOR . $sFileRelPath;
|
require_once $sCallerDirAbsPath . DIRECTORY_SEPARATOR . $sFileRelPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function GetFirstDirUpContainingFile(string $sSearchPath, string $sFileToFindGlobPattern): ?string
|
|
||||||
{
|
|
||||||
for ($iDepth = 0; $iDepth < 8; $iDepth++) {
|
|
||||||
$aGlobFiles = glob($sSearchPath . '/' . $sFileToFindGlobPattern);
|
|
||||||
if (is_array($aGlobFiles) && (count($aGlobFiles) > 0)) {
|
|
||||||
return $sSearchPath . '/';
|
|
||||||
}
|
|
||||||
$iOffsetSep = strrpos($sSearchPath, '/');
|
|
||||||
if ($iOffsetSep === false) {
|
|
||||||
$iOffsetSep = strrpos($sSearchPath, '\\');
|
|
||||||
if ($iOffsetSep === false) {
|
|
||||||
// Do not throw an exception here as PHPUnit will not show it clearly when determing the list of test to perform
|
|
||||||
return 'Could not find the approot file in ' . $sSearchPath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$sSearchPath = substr($sSearchPath, 0, $iOffsetSep);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function debug($sMsg)
|
protected function debug($sMsg)
|
||||||
{
|
{
|
||||||
if (DEBUG_UNIT_TEST) {
|
if (DEBUG_UNIT_TEST) {
|
||||||
@@ -153,7 +116,7 @@ abstract class ItopTestCase extends TestCase
|
|||||||
|
|
||||||
public function GetMicroTime()
|
public function GetMicroTime()
|
||||||
{
|
{
|
||||||
list($uSec, $sec) = explode(" ", microtime());
|
[$uSec, $sec] = explode(" ", microtime());
|
||||||
return ((float)$uSec + (float)$sec);
|
return ((float)$uSec + (float)$sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,7 +158,7 @@ abstract class ItopTestCase extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @param string $sObjectClass for example DBObject::class
|
* @param string $sObjectClass for example DBObject::class
|
||||||
* @param string $sMethodName
|
* @param string $sMethodName
|
||||||
* @param object $oObject
|
* @param object|null $oObject
|
||||||
* @param array $aArgs
|
* @param array $aArgs
|
||||||
*
|
*
|
||||||
* @return mixed method result
|
* @return mixed method result
|
||||||
@@ -238,7 +201,7 @@ abstract class ItopTestCase extends TestCase
|
|||||||
* @throws \ReflectionException
|
* @throws \ReflectionException
|
||||||
* @since 2.7.8 3.0.3 3.1.0
|
* @since 2.7.8 3.0.3 3.1.0
|
||||||
*/
|
*/
|
||||||
public function GetNonPublicProperty(object $oObject, string $sProperty)
|
public function GetNonPublicProperty($oObject, string $sProperty)
|
||||||
{
|
{
|
||||||
$oProperty = $this->GetProperty(get_class($oObject), $sProperty);
|
$oProperty = $this->GetProperty(get_class($oObject), $sProperty);
|
||||||
|
|
||||||
@@ -307,7 +270,7 @@ abstract class ItopTestCase extends TestCase
|
|||||||
* @throws \ReflectionException
|
* @throws \ReflectionException
|
||||||
* @since 2.7.8 3.0.3 3.1.0
|
* @since 2.7.8 3.0.3 3.1.0
|
||||||
*/
|
*/
|
||||||
public function SetNonPublicProperty(object $oObject, string $sProperty, $value)
|
public function SetNonPublicProperty($oObject, string $sProperty, $value)
|
||||||
{
|
{
|
||||||
$oProperty = $this->GetProperty(get_class($oObject), $sProperty);
|
$oProperty = $this->GetProperty(get_class($oObject), $sProperty);
|
||||||
$oProperty->setValue($oObject, $value);
|
$oProperty->setValue($oObject, $value);
|
||||||
|
|||||||
Reference in New Issue
Block a user