Fix #2245 don't change file state when moving document or comment to trash

This commit is contained in:
Kijin Sung 2023-12-30 20:33:00 +09:00
parent 031f3bb54d
commit 6486462b73
2 changed files with 4 additions and 0 deletions

View file

@ -1434,6 +1434,7 @@ class DocumentController extends Document
}
// Set the attachment to be invalid state
/*
if($oDocument->hasUploadedFiles())
{
$args = new stdClass();
@ -1441,6 +1442,7 @@ class DocumentController extends Document
$args->isvalid = 'N';
executeQuery('file.updateFileValid', $args);
}
*/
// Call a trigger (after)
$obj->trash_srl = $oTrashVO->getTrashSrl();