N°3065 - Failed enum comparison when values contains parenthesis

This commit is contained in:
odain
2021-03-01 17:06:49 +01:00
parent cd4b3fdaab
commit 5c0e92d51a

View File

@@ -1264,7 +1264,11 @@ class CMDBSource
$sDataType = isset($aMatches[1]) ? $aMatches[1] : '';
if (strcasecmp($sDataType, 'ENUM') === 0){
return self::GetEnumOptions($sDataType, $sCompleteFieldType);
try{
return self::GetEnumOptions($sDataType, $sCompleteFieldType);
}catch(CoreException $e){
//do nothing ; especially do not block setup.
}
}
$sTypeOptions = isset($aMatches[2]) ? $aMatches[3] : '';