Fix multiple default values being shown on extravar edit screen

This commit is contained in:
Kijin Sung 2025-06-12 20:30:09 +09:00
parent 4c609f9827
commit 7ffe499a66
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ class Value
}
elseif ($this->default)
{
return array_first($this->getOptions());
return is_array($this->default) ? array_first($this->default) : array_first(explode(',', $this->default));
}
else
{