mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for subscription fails on getDisplayName() (#2912)
As per #2908 - Dev branch
This commit is contained in:
parent
2d70fa7ad8
commit
a469870b2a
@ -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…
x
Reference in New Issue
Block a user