FIX Bad error management into trigger of mailmanspip

This commit is contained in:
Laurent Destailleur
2016-06-25 18:48:50 +02:00
parent a8ba8e612a
commit f021a8ca31
6 changed files with 25 additions and 21 deletions

View File

@@ -3998,14 +3998,13 @@ abstract class CommonObject
{
if (!empty($this->errors))
{
$this->errors=array_merge($this->errors,$interface->errors);
$this->errors=array_unique(array_merge($this->errors,$interface->errors)); // We use array_unique because when a trigger call another trigger on same object, this->errors is added twice.
}
else
{
$this->errors=$interface->errors;
}
}
return $result;
}