mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 20:48:46 +02:00
N°4756 - Ease extensibility for CRUD operations : Event Service - 💚 Fix CI
This commit is contained in:
@@ -309,8 +309,8 @@ class EventService
|
||||
$aRes = [];
|
||||
$oClass = new ReflectionClass($sClass);
|
||||
foreach (self::$aEventDescription as $sEvent => $aEventInfo) {
|
||||
if (is_array($aEventInfo['description']->GetSources())) {
|
||||
foreach ($aEventInfo['description']->GetSources() as $sSource) {
|
||||
if (is_array($aEventInfo['description']->GetEventSources())) {
|
||||
foreach ($aEventInfo['description']->GetEventSources() as $sSource) {
|
||||
if ($sClass == $sSource || $oClass->isSubclassOf($sSource)) {
|
||||
$aRes[$sEvent] = $aEventInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user