mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
Fix #770 list order of document with attachments
This commit is contained in:
parent
b0bf971cee
commit
c377e371b1
1 changed files with 6 additions and 1 deletions
|
|
@ -167,7 +167,12 @@ class boardController extends board
|
|||
// INSERT a new document.
|
||||
else
|
||||
{
|
||||
$output = $oDocumentController->insertDocument($obj, $bAnonymous);
|
||||
if ($obj->document_srl)
|
||||
{
|
||||
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
||||
}
|
||||
|
||||
$output = $oDocumentController->insertDocument($obj, $bAnonymous, false, $obj->document_srl ? false : true);
|
||||
$msg_code = 'success_registed';
|
||||
$obj->document_srl = $output->get('document_srl');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue