mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Bulk delete: fixed a regression due to transaction management + cosmetics
Error management: cope with context data that are not a string SVN:trunk[450]
This commit is contained in:
@@ -187,13 +187,21 @@ class EventIssue extends Event
|
||||
$aPost = array();
|
||||
foreach($GLOBALS['_POST'] as $sKey => $sValue)
|
||||
{
|
||||
if (strlen($sValue) < 256)
|
||||
if (is_string($sValue))
|
||||
{
|
||||
$aPost[$sKey] = $sValue;
|
||||
if (strlen($sValue) < 256)
|
||||
{
|
||||
$aPost[$sKey] = $sValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
$aPost[$sKey] = "!long string: ".strlen($sValue). " chars";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$aPost[$sKey] = "!long string: ".strlen($sValue). " chars";
|
||||
// Not a string
|
||||
$aPost[$sKey] = (string) $sValue;
|
||||
}
|
||||
}
|
||||
$this->Set('arguments_post', $aPost);
|
||||
|
||||
Reference in New Issue
Block a user