From 4404db650c10ef75625b4aa2c707c8bdb040410d Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 1 Apr 2021 06:19:01 +0200 Subject: [PATCH] Fix #4574 --- app/Services/Internal/Update/BillUpdateService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Services/Internal/Update/BillUpdateService.php b/app/Services/Internal/Update/BillUpdateService.php index f15570ba54..48616fd059 100644 --- a/app/Services/Internal/Update/BillUpdateService.php +++ b/app/Services/Internal/Update/BillUpdateService.php @@ -222,6 +222,9 @@ class BillUpdateService 'amount_max' => 'amount_less', 'transaction_currency_name' => 'currency_is']; foreach ($fields as $field => $ruleTriggerKey) { + if (!array_key_exists($field, $newData)) { + continue; + } if ($oldData[$field] === $newData[$field]) { Log::debug(sprintf('Field %s is unchanged ("%s"), continue.', $field, $oldData[$field])); continue;