Fill upload_target_type as soon as parent document/comment/module is saved

This commit is contained in:
Kijin Sung 2019-11-22 17:37:52 +09:00
parent 12f047b822
commit 1c07b2e0d2
3 changed files with 9 additions and 4 deletions

View file

@ -173,7 +173,7 @@ class pageAdminController extends page
if(!$output->toBool()) return $output;
// On the page, change the validity status of the attached file
$oFileController = getController('file');
$oFileController->setFilesValid($module_info->module_srl);
$oFileController->setFilesValid($module_info->module_srl, 'mod');
$this->add("module_srl", $module_info->module_srl);
$this->add("page", Context::get('page'));