improve tags

This commit is contained in:
JhumanJ
2022-11-01 14:43:14 +01:00
parent e95e13d8f9
commit b6c9bfe1f8
2 changed files with 6 additions and 6 deletions

View File

@@ -155,8 +155,8 @@ class Form extends Model
public function setTagsAttribute($value)
{
if ($value == null || $value == '') {
$value = '[]';
if ($value == '') {
$value = null;
}
$this->attributes['tags'] = json_encode($value);
}