mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
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
@ -263,7 +263,7 @@ class SubscriptionListener
|
||||
$jsonData = $manager->createData($resource)->toArray();
|
||||
|
||||
// For legacy Zapier support
|
||||
if (isset($jsonData['client_id'])) {
|
||||
if (isset($jsonData['client_id']) && $jsonData['client_id'] != 0) {
|
||||
$jsonData['client_name'] = $entity->client->getDisplayName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user