Fix for subscription fails on getDisplayName() (#2912)

As per #2908 - Dev branch
This commit is contained in:
hjone72 2019-07-25 11:53:39 +10:00 committed by David Bomba
parent 2d70fa7ad8
commit a469870b2a

View File

@ -263,7 +263,7 @@ class SubscriptionListener
$jsonData = $manager->createData($resource)->toArray(); $jsonData = $manager->createData($resource)->toArray();
// For legacy Zapier support // For legacy Zapier support
if (isset($jsonData['client_id'])) { if (isset($jsonData['client_id']) && $jsonData['client_id'] != 0) {
$jsonData['client_name'] = $entity->client->getDisplayName(); $jsonData['client_name'] = $entity->client->getDisplayName();
} }