From 31eaafdbc1d94407fcf98469dda954618f00eddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 7 Jun 2022 09:45:04 +0300 Subject: [PATCH] Company update issue solved. ( #2zftb0k ) --- app/Models/Common/Company.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/Common/Company.php b/app/Models/Common/Company.php index 334fd877d..b025c1abe 100644 --- a/app/Models/Common/Company.php +++ b/app/Models/Common/Company.php @@ -70,7 +70,8 @@ class Company extends Eloquent implements Ownable { parent::boot(); - try { // TODO will optimize.. + try { + // TODO will optimize.. static::retrieved(function($model) { $model->setCommonSettingsAsAttributes(); }); @@ -336,6 +337,7 @@ class Company extends Eloquent implements Ownable } $this->offsetUnset('logo'); + $this->offsetUnset('currency'); } catch(\Throwable $e) { }