Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 158ecbbc erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: interface OutputProviderInterface will always evaluate to false

Übergeordneter c4c252f0
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!148fix: interface OutputProviderInterface will always evaluate to false,!140Update 'next-4.x' with latest changes from 'main'
Pipeline-Nr. 12056 mit Warnungen bestanden
......@@ -51,16 +51,18 @@ function ($entityId, $entityType, $entityPlugin) {
$uuid = $Entity->getUUID();
$prefixedNumber = $Entity->getPrefixedNumber();
} catch (QUI\Exception) {
if ($OutputProvider instanceof OutputProviderInterface) {
$Entity = $OutputProvider->getEntity($entityId);
$OutputProviderInstance = new $OutputProvider();
if (method_exists($Entity, 'getUUID')) {
if ($OutputProviderInstance instanceof OutputProviderInterface) {
$Entity = $OutputProviderInstance->getEntity($entityId);
if ($Entity && method_exists($Entity, 'getUUID')) {
$uuid = $Entity->getUUID();
} elseif (method_exists($Entity, 'getId')) {
} elseif ($Entity && method_exists($Entity, 'getId')) {
$uuid = $Entity->getID();
}
if (method_exists($Entity, 'getPrefixedNumber')) {
if ($Entity && method_exists($Entity, 'getPrefixedNumber')) {
$prefixedNumber = $Entity->getPrefixedNumber();
}
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren