mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-16 08:54:12 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35215cf62f | ||
|
|
66273ebd39 | ||
|
|
512b415bd6 | ||
|
|
906c8855b0 |
@@ -103,7 +103,7 @@ class FilesIntegrity
|
||||
$sChecksum = md5($sContent);
|
||||
if (($iSize != $aFileInfo['size']) || ($sChecksum != $aFileInfo['md5']))
|
||||
{
|
||||
throw new FileIntegrityException(Dict::Format('FilesInformation:Error:CorruptedFile', basename($sFile)));
|
||||
throw new FileIntegrityException(Dict::Format('FilesInformation:Error:CorruptedFile', $sFile));
|
||||
}
|
||||
}
|
||||
// Packed with missing files...
|
||||
|
||||
@@ -89,7 +89,7 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'Class:Query/Attribute:description' => 'Description',
|
||||
'Class:Query/Attribute:description+' => 'Long description for the query (purpose, usage, etc.)',
|
||||
'Class:QueryOQL/Attribute:fields' => 'Fields',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Coma separated list of attributes (or alias.attribute) to export',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Comma separated list of attributes (or alias.attribute) to export',
|
||||
'Class:QueryOQL' => 'OQL Query',
|
||||
'Class:QueryOQL+' => 'A query based on the Object Query Language',
|
||||
'Class:QueryOQL/Attribute:oql' => 'Expression',
|
||||
|
||||
@@ -72,7 +72,7 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', array(
|
||||
'Class:Query/Attribute:description' => 'Description~~',
|
||||
'Class:Query/Attribute:description+' => 'Long description for the query (purpose, usage, etc.)~~',
|
||||
'Class:QueryOQL/Attribute:fields' => 'Fields~~',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Coma separated list of attributes (or alias.attribute) to export~~',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Comma separated list of attributes (or alias.attribute) to export~~',
|
||||
'Class:QueryOQL' => 'OQL Query~~',
|
||||
'Class:QueryOQL+' => 'A query based on the Object Query Language~~',
|
||||
'Class:QueryOQL/Attribute:oql' => 'Expression~~',
|
||||
|
||||
@@ -71,7 +71,7 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', array(
|
||||
'Class:Query/Attribute:description' => 'Popis',
|
||||
'Class:Query/Attribute:description+' => '',
|
||||
'Class:QueryOQL/Attribute:fields' => 'Polia',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Coma separated list of attributes (or alias.attribute) to export~~',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Comma separated list of attributes (or alias.attribute) to export~~',
|
||||
'Class:QueryOQL' => 'OQL Dopyt',
|
||||
'Class:QueryOQL+' => '',
|
||||
'Class:QueryOQL/Attribute:oql' => 'Výraz',
|
||||
|
||||
@@ -86,7 +86,7 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', array(
|
||||
'Class:Query/Attribute:description' => 'Description~~',
|
||||
'Class:Query/Attribute:description+' => 'Long description for the query (purpose, usage, etc.)~~',
|
||||
'Class:QueryOQL/Attribute:fields' => 'Fields~~',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Coma separated list of attributes (or alias.attribute) to export~~',
|
||||
'Class:QueryOQL/Attribute:fields+' => 'Comma separated list of attributes (or alias.attribute) to export~~',
|
||||
'Class:QueryOQL' => 'OQL Query~~',
|
||||
'Class:QueryOQL+' => 'A query based on the Object Query Language~~',
|
||||
'Class:QueryOQL/Attribute:oql' => 'Expression~~',
|
||||
|
||||
@@ -102,10 +102,16 @@ class CMDBSourceTest extends ItopTestCase
|
||||
"enum('1','2','3') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '1'",
|
||||
),
|
||||
'ENUM with values containing parenthesis' => array(
|
||||
true,
|
||||
true, // see N°3065 : if having distinct values having parenthesis in enum values will cause comparison to be inexact
|
||||
"ENUM('CSP A','CSP M','NA','OEM(ROC)','OPEN(VL)','RETAIL (Boite)') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci",
|
||||
"enum('CSP A','CSP M','NA','OEM(ROC)','OPEN(VL)','RETAIL (Boite)') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci",
|
||||
),
|
||||
//FIXME N°3065 before the fix this returns true :(
|
||||
// 'ENUM with different values, containing parenthesis' => array(
|
||||
// false,
|
||||
// "ENUM('value 1 (with parenthesis)','value 2') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci",
|
||||
// "enum('value 1 (with parenthesis)','value 3') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci",
|
||||
// ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -336,17 +336,14 @@ if (!$oP)
|
||||
$oP->p("Parameters:");
|
||||
$oP->p(" * expression: an OQL expression (URL encoded if needed)");
|
||||
$oP->p(" * query: (alternative to 'expression') the id of an entry from the query phrasebook");
|
||||
if (Utils::IsModeCLI())
|
||||
{
|
||||
if (Utils::IsModeCLI()) {
|
||||
$oP->p(" * with_archive: (optional, defaults to 0) if set to 1 then the result set will include archived objects");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$oP->p(" * with_archive: (optional, defaults to the current mode) if set to 1 then the result set will include archived objects");
|
||||
}
|
||||
$oP->p(" * arg_xxx: (needed if the query has parameters) the value of the parameter 'xxx'");
|
||||
$oP->p(" * format: (optional, default is html) the desired output format. Can be one of 'html', 'spreadsheet', 'csv', 'xlsx' or 'xml'");
|
||||
$oP->p(" * fields: (optional, no effect on XML format) list of fields (attribute codes, or alias.attcode) separated by a coma");
|
||||
$oP->p(" * fields: (optional, no effect on XML format) list of fields (attribute codes, or alias.attcode) separated by a comma");
|
||||
$oP->p(" * fields_advanced: (optional, no effect on XML/HTML formats ; ignored is fields is specified) If set to 1, the default list of fields will include the external keys and their reconciliation keys");
|
||||
$oP->p(" * filename: (optional, no effect in CLI mode) if set then the results will be downloaded as a file");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user