diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php index c31ae0e31..2648f53d9 100644 --- a/modules/document/document.controller.php +++ b/modules/document/document.controller.php @@ -233,7 +233,7 @@ class documentController extends document } // Set the read counts and update order. if(!$obj->readed_count) $obj->readed_count = 0; - if($isLatest) $obj->update_order = $obj->list_order = getNextSequence() * -1; + if($isLatest) $obj->update_order = $obj->list_order = $obj->document_srl * -1; else $obj->update_order = $obj->list_order; // Check the status of password hash for manually inserting. Apply md5 hashing for otherwise. if($obj->password && !$obj->password_is_hashed) $obj->password = md5($obj->password);