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