mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
Merge pull request #2450 from dewekk/fix-file-count
확장변수 파일 등록 후 문서 수정 시 파일 처리 문제 수정
This commit is contained in:
commit
b52ae2f214
2 changed files with 4 additions and 4 deletions
|
|
@ -694,7 +694,7 @@ class DocumentController extends Document
|
|||
unset($obj->user_id);
|
||||
}
|
||||
|
||||
$obj->uploaded_count = FileModel::getFilesCount($obj->document_srl);
|
||||
$obj->uploaded_count = FileModel::getFilesCount($obj->document_srl, 'doc');
|
||||
|
||||
// Call a trigger (before)
|
||||
$output = ModuleHandler::triggerCall('document.insertDocument', 'before', $obj);
|
||||
|
|
@ -991,7 +991,7 @@ class DocumentController extends Document
|
|||
if(($obj->title_color ?? 'N') === 'N') $obj->title_color = 'N';
|
||||
if(($obj->notify_message ?? 'N') !== 'Y') $obj->notify_message = 'N';
|
||||
if(($obj->allow_trackback ?? 'N') !== 'Y') $obj->allow_trackback = 'N';
|
||||
$obj->uploaded_count = FileModel::getFilesCount($obj->document_srl);
|
||||
$obj->uploaded_count = FileModel::getFilesCount($obj->document_srl, 'doc');
|
||||
|
||||
// Call a trigger (before)
|
||||
$output = ModuleHandler::triggerCall('document.updateDocument', 'before', $obj);
|
||||
|
|
@ -3769,7 +3769,7 @@ Content;
|
|||
|
||||
$args = new stdClass;
|
||||
$args->document_srl = $document_srl;
|
||||
$args->uploaded_count = FileModel::getFilesCount($document_srl);
|
||||
$args->uploaded_count = FileModel::getFilesCount($document_srl, 'doc');
|
||||
executeQuery('document.updateUploadedCount', $args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1460,7 +1460,7 @@ class DocumentItem extends BaseObject
|
|||
|
||||
if(!isset($this->uploadedFiles[$sortIndex]))
|
||||
{
|
||||
$this->uploadedFiles[$sortIndex] = FileModel::getFiles($this->document_srl, array(), $sortIndex, true);
|
||||
$this->uploadedFiles[$sortIndex] = FileModel::getFiles($this->document_srl, array(), $sortIndex, true, 'doc');
|
||||
}
|
||||
|
||||
return $this->uploadedFiles[$sortIndex];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue