Improve backward compatibility with legacy default values for extra vars

This commit is contained in:
Kijin Sung 2025-06-12 21:01:42 +09:00
parent 7ffe499a66
commit 4b2cc8c9cf

View file

@ -195,7 +195,7 @@ class Value
{
return $this->default;
}
elseif ($this->default)
elseif ($this->default && $this->parent_type !== 'member' && !in_array($this->type, ['checkbox', 'radio']))
{
return is_array($this->default) ? array_first($this->default) : array_first(explode(',', $this->default));
}