From 979aa9c0566401910f7325387b797b1b84de2b5c Mon Sep 17 00:00:00 2001 From: Dell Date: Wed, 27 Jul 2022 14:26:41 +0700 Subject: [PATCH] Fix Area Limit Setter --- app/Models/Benefit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Benefit.php b/app/Models/Benefit.php index 4cdaebf8..9c789ff9 100644 --- a/app/Models/Benefit.php +++ b/app/Models/Benefit.php @@ -134,7 +134,7 @@ class Benefit extends Model public function setAreaLimitAttribute($value) { - $this->attributes['area_limit'] = $value ? $value : null; + $this->attributes['area_limit'] = empty($value) ? null : $value; } public function setPrePostTreatmentAttribute($value)