From a469870b2a5a4fb59f3082b8d91900578e572769 Mon Sep 17 00:00:00 2001 From: hjone72 Date: Thu, 25 Jul 2019 11:53:39 +1000 Subject: [PATCH] Fix for subscription fails on getDisplayName() (#2912) As per #2908 - Dev branch --- app/Listeners/SubscriptionListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/SubscriptionListener.php b/app/Listeners/SubscriptionListener.php index e494af770484..8481f8296ff7 100644 --- a/app/Listeners/SubscriptionListener.php +++ b/app/Listeners/SubscriptionListener.php @@ -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(); }