Internal: fixed regression introduced in iTop 2.3.0 beta: no error though a mandatory attribute of type HTML has been left empty

SVN:trunk[4226]
This commit is contained in:
Romain Quetiez
2016-06-20 10:15:12 +00:00
parent feebe3f9a9
commit 963a09ba6f

View File

@@ -2499,7 +2499,10 @@ class AttributeText extends AttributeString
switch ($this->GetFormat())
{
case 'html':
$sValue = HTMLSanitizer::Sanitize($sValue);
if (($sValue !== null) && ($sValue !== ''))
{
$sValue = HTMLSanitizer::Sanitize($sValue);
}
break;
case 'text':