mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +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;
|
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));
|
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