mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
임시저장글 불러올 경우 게시글 작성시각을 현재 시간으로 변경
This commit is contained in:
parent
01c2c687c6
commit
9cd1bb1f91
1 changed files with 8 additions and 0 deletions
|
|
@ -97,6 +97,14 @@ class boardController extends board
|
|||
$obj->title_bold = $oDocument->get('title_bold');
|
||||
}
|
||||
|
||||
// modify list_order if document status is temp
|
||||
if($oDocument->get('status') == 'TEMP')
|
||||
{
|
||||
$min_list_order = executeQuery('document.getDocumentMinListOrder')->data->list_order;
|
||||
$obj->last_update = $obj->regdate = date('YmdHis');
|
||||
$obj->update_order = $obj->list_order = $min_list_order - 1;
|
||||
}
|
||||
|
||||
$output = $oDocumentController->updateDocument($oDocument, $obj);
|
||||
$msg_code = 'success_updated';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue