Fix list_order and update_order not bumped when updating a temporarily saved document (2.1.5 regression)

https://xetown.com/questions/1814863
This commit is contained in:
Kijin Sung 2024-03-19 22:45:44 +09:00
parent c996ab1259
commit 7c8e76b727
2 changed files with 15 additions and 18 deletions

View file

@ -178,14 +178,8 @@ class BoardController extends Board
}
}
// if document status is temp
if($oDocument->get('status') == DocumentModel::getConfigStatus('temp'))
{
// Update list order, date
$obj->last_update = $obj->regdate = date('YmdHis');
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
}
else
// Additional protections for published (non-TEMP) documents
if($oDocument->get('status') !== DocumentModel::getConfigStatus('temp'))
{
// Protect document by comment
if($this->module_info->protect_content == 'Y' || $this->module_info->protect_update_content == 'Y')