Fix for subscription fails on getDisplayName() (#2909)
As per https://github.com/invoiceninja/invoiceninja/issues/2908
This commit is contained in:
parent
3cc9eb0bec
commit
ba8c0eb035
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue