mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
Fix #2245 don't change file state when moving document or comment to trash
This commit is contained in:
parent
031f3bb54d
commit
6486462b73
2 changed files with 4 additions and 0 deletions
|
|
@ -1437,6 +1437,7 @@ class CommentController extends Comment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if($oComment->hasUploadedFiles())
|
if($oComment->hasUploadedFiles())
|
||||||
{
|
{
|
||||||
$args = new stdClass();
|
$args = new stdClass();
|
||||||
|
|
@ -1444,6 +1445,7 @@ class CommentController extends Comment
|
||||||
$args->isvalid = 'N';
|
$args->isvalid = 'N';
|
||||||
executeQuery('file.updateFileValid', $args);
|
executeQuery('file.updateFileValid', $args);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
$obj->trash_srl = $oTrashVO->getTrashSrl();
|
$obj->trash_srl = $oTrashVO->getTrashSrl();
|
||||||
$obj->module_srl = $oComment->get('module_srl');
|
$obj->module_srl = $oComment->get('module_srl');
|
||||||
|
|
|
||||||
|
|
@ -1434,6 +1434,7 @@ class DocumentController extends Document
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the attachment to be invalid state
|
// Set the attachment to be invalid state
|
||||||
|
/*
|
||||||
if($oDocument->hasUploadedFiles())
|
if($oDocument->hasUploadedFiles())
|
||||||
{
|
{
|
||||||
$args = new stdClass();
|
$args = new stdClass();
|
||||||
|
|
@ -1441,6 +1442,7 @@ class DocumentController extends Document
|
||||||
$args->isvalid = 'N';
|
$args->isvalid = 'N';
|
||||||
executeQuery('file.updateFileValid', $args);
|
executeQuery('file.updateFileValid', $args);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Call a trigger (after)
|
// Call a trigger (after)
|
||||||
$obj->trash_srl = $oTrashVO->getTrashSrl();
|
$obj->trash_srl = $oTrashVO->getTrashSrl();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue