From 5c98d380615db7c2e7547b72757baff72837a67f Mon Sep 17 00:00:00 2001 From: Jon Bendtsen Date: Sat, 16 Mar 2024 00:41:45 +0100 Subject: [PATCH] remove caller because it failed in phpstan --- htdocs/societe/class/api_thirdparties.class.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index f8b732e4b5e..59a8a53ffd7 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1204,12 +1204,6 @@ class Thirdparties extends DolibarrApi } foreach ($request_data as $field => $value) { - if ($field === 'caller') { - // Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller - $notification->context['caller'] = $request_data['caller']; - continue; - } - $notification->$field = $value; }