From b73d012781d8469bfd771a174e72db8a8593ab69 Mon Sep 17 00:00:00 2001 From: Dell Date: Wed, 27 Jul 2022 14:24:11 +0700 Subject: [PATCH] Fix Area Limit Setter --- app/Models/Benefit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Benefit.php b/app/Models/Benefit.php index d18ecf30..4cdaebf8 100644 --- a/app/Models/Benefit.php +++ b/app/Models/Benefit.php @@ -132,6 +132,11 @@ class Benefit extends Model "Show Benefit Value" => 'show_benefit_value', ]; + public function setAreaLimitAttribute($value) + { + $this->attributes['area_limit'] = $value ? $value : null; + } + public function setPrePostTreatmentAttribute($value) { $this->attributes['pre_post_treatment'] = empty($value) ? null : ($value == 'Y');