Fix minor issues with backward compatibility

This commit is contained in:
Kijin Sung 2024-10-09 11:50:38 +09:00
parent 0a4216fa3f
commit a6d9f84147
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -26,7 +26,7 @@
<input type="file" name="{{ $input_name }}"
id="{{ $input_id }}"|if="$input_id" class="file rx_ev_file"
style="{{ $definition->style }}"|if="$definition->style"
accept="{{ $allowed_filetypes }}"|if="$allowed_filetypes !== '' && $allowed_filetypes !== '*'"
accept="{{ $allowed_filetypes }}"|if="$allowed_filetypes !== '' && $allowed_filetypes !== '.*'"
data-allowed-filesize="{{ $allowed_filesize }}"
data-msg-filesize="{{ lang('file.msg_exceeds_limit_size') }}"
@required(toBool($definition->is_required) && !$value)