mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user