1
0
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:
hjone72 2019-07-24 14:04:21 +10:00 committed by David Bomba
parent 3cc9eb0bec
commit ba8c0eb035

View File

@ -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();
}