mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
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:
parent
c996ab1259
commit
7c8e76b727
2 changed files with 15 additions and 18 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue