|
@@ 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 |
|
{ |
|
@@ 2446-2452 (lines=7) @@
|
| 2443 |
|
$oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager); |
| 2444 |
|
} |
| 2445 |
|
// Set the attachment to be invalid state |
| 2446 |
|
if($oDocument->hasUploadedFiles()) |
| 2447 |
|
{ |
| 2448 |
|
$args = new stdClass; |
| 2449 |
|
$args->upload_target_srl = $oDocument->document_srl; |
| 2450 |
|
$args->isvalid = 'N'; |
| 2451 |
|
executeQuery('file.updateFileValid', $args); |
| 2452 |
|
} |
| 2453 |
|
|
| 2454 |
|
$this->setMessage('success_saved'); |
| 2455 |
|
$this->add('document_srl', $obj->document_srl); |