Fix #2088 display error if spam filter prevents temp save

This commit is contained in:
Kijin Sung 2023-03-23 22:30:13 +09:00
parent 770626af41
commit c6523706f8

View file

@ -3302,6 +3302,12 @@ Content;
$oDocument = DocumentModel::getDocument($output->get('document_srl'));
}
// Return error if save failed for any reason
if (!$output->toBool())
{
return $output;
}
// Set the attachment to be invalid state
if($oDocument->hasUploadedFiles())
{