@@ 797-803 (lines=7) @@ | ||
794 | // remove thumbnails |
|
795 | FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($obj->document_srl, 3))); |
|
796 | // Set the attachment to be invalid state |
|
797 | if($oDocument->hasUploadedFiles()) |
|
798 | { |
|
799 | $args = new stdClass(); |
|
800 | $args->upload_target_srl = $oDocument->document_srl; |
|
801 | $args->isvalid = 'N'; |
|
802 | executeQuery('file.updateFileValid', $args); |
|
803 | } |
|
804 | // Call a trigger (after) |
|
805 | if($output->toBool()) |
|
806 | { |
|
@@ 2429-2435 (lines=7) @@ | ||
2426 | $oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager); |
|
2427 | } |
|
2428 | // Set the attachment to be invalid state |
|
2429 | if($oDocument->hasUploadedFiles()) |
|
2430 | { |
|
2431 | $args = new stdClass; |
|
2432 | $args->upload_target_srl = $oDocument->document_srl; |
|
2433 | $args->isvalid = 'N'; |
|
2434 | executeQuery('file.updateFileValid', $args); |
|
2435 | } |
|
2436 | ||
2437 | $this->setMessage('success_saved'); |
|
2438 | $this->add('document_srl', $obj->document_srl); |