mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Update file count after copying document or comment with its files #2569
This commit is contained in:
parent
5e9cf872e7
commit
eaa0aee988
4 changed files with 63 additions and 2 deletions
|
|
@ -3788,7 +3788,17 @@ Content;
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A typo of updateUploadedCount, maintained for backward compatibility.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
public function updateUploaedCount($document_srl_list)
|
||||
{
|
||||
return $this->updateUploadedCount($document_srl_list);
|
||||
}
|
||||
|
||||
public function updateUploadedCount($document_srl_list)
|
||||
{
|
||||
if(!is_array($document_srl_list))
|
||||
{
|
||||
|
|
@ -3804,7 +3814,8 @@ Content;
|
|||
|
||||
foreach($document_srl_list as $document_srl)
|
||||
{
|
||||
if(!$document_srl = (int) $document_srl)
|
||||
$document_srl = (int)$document_srl;
|
||||
if ($document_srl <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
@ -3824,7 +3835,7 @@ Content;
|
|||
return;
|
||||
}
|
||||
|
||||
$this->updateUploaedCount($file->upload_target_srl);
|
||||
$this->updateUploadedCount($file->upload_target_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue