mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix error when updating a document with a required file #2685
This commit is contained in:
parent
cdc713301f
commit
a03c33381f
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ class Value
|
|||
}
|
||||
|
||||
// Check that a file value is actually an uploaded file.
|
||||
if ($this->type === 'file' && $value)
|
||||
if ($this->type === 'file' && $value && $value !== $old_value)
|
||||
{
|
||||
if (!isset($value['tmp_name']) || !is_uploaded_file($value['tmp_name']))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue