mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Improve backward compatibility with legacy default values for extra vars
This commit is contained in:
parent
7ffe499a66
commit
4b2cc8c9cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue