mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Merge pull request #333 from lansi951/temp_list_order
임시저장글 불러올 경우 게시글 작성시각을 현재 시간으로 변경
This commit is contained in:
commit
b2219ce186
1 changed files with 7 additions and 0 deletions
|
|
@ -97,6 +97,13 @@ class boardController extends board
|
|||
$obj->title_bold = $oDocument->get('title_bold');
|
||||
}
|
||||
|
||||
// modify list_order if document status is temp
|
||||
if($oDocument->get('status') == 'TEMP')
|
||||
{
|
||||
$obj->last_update = $obj->regdate = date('YmdHis');
|
||||
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
||||
}
|
||||
|
||||
$output = $oDocumentController->updateDocument($oDocument, $obj);
|
||||
$msg_code = 'success_updated';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue