NOISSUE document의 list_order로 인해 불필요한 sequence 낭비를 줄임.

This commit is contained in:
bnu 2013-12-04 22:50:28 +09:00
parent 1b60833bad
commit b2a2db12e0

View file

@ -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);