From 0c3c4087f70261d9a898b1a6774be295f980133a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 18 Dec 2023 10:29:27 +0300 Subject: [PATCH] Fixed edit form account component duplicate item issue.. --- app/View/Components/Form/Group/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/View/Components/Form/Group/Account.php b/app/View/Components/Form/Group/Account.php index e53ac272f..13f33a5cd 100644 --- a/app/View/Components/Form/Group/Account.php +++ b/app/View/Components/Form/Group/Account.php @@ -52,7 +52,7 @@ class Account extends Form $selected_account = $model->account; } - if (! empty($selected_account) && ! $this->accounts->has($selected_account->id)) { + if (! empty($selected_account) && ! $this->accounts->contains('id', $selected_account->id)) { $this->accounts->push($selected_account); }