diff --git a/app/Http/Requests/Payment/UpdatePaymentRequest.php b/app/Http/Requests/Payment/UpdatePaymentRequest.php index ed6f19c2cf64..766aae657d82 100644 --- a/app/Http/Requests/Payment/UpdatePaymentRequest.php +++ b/app/Http/Requests/Payment/UpdatePaymentRequest.php @@ -73,7 +73,9 @@ class UpdatePaymentRequest extends Request if (isset($input['invoices']) && is_array($input['invoices']) !== false) { foreach ($input['invoices'] as $key => $value) { - $input['invoices'][$key]['invoice_id'] = $this->decodePrimaryKey($value['invoice_id']); + + if(array_key_exists('invoice_id', $input['invoices'][$key])) + $input['invoices'][$key]['invoice_id'] = $this->decodePrimaryKey($value['invoice_id']); } } $this->replace($input); diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 99a10c3303b9..04bef3433d15 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -152,6 +152,18 @@ + + + +