Fix Area Limit Setter

This commit is contained in:
2022-07-27 14:26:41 +07:00
parent b73d012781
commit 979aa9c056

View File

@@ -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)