* [bug #59426] update order for creating doc lib.

This commit is contained in:
sunhao
2025-03-04 22:09:04 +08:00
committed by 曹延义
parent a91045bfcb
commit f484142413
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -353,6 +353,7 @@ class docModel extends model
}
$libID = $this->docTao->doInsertLib($lib, $this->config->doc->createlib->requiredFields);
$this->dao->update(TABLE_DOCLIB)->set('`order`')->eq($libID)->where('id')->eq($libID)->exec();
if(dao::isError()) return false;
return $libID;
}
+1 -1
View File
@@ -284,7 +284,7 @@ class docZen extends doc
$this->action->create('docLib', $libID, 'Created');
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $libID));
$lib = array('id' => $libID, 'name' => $libName, 'space' => (int)$objectID, 'orderBy' => $orderBy);
$lib = array('id' => $libID, 'name' => $libName, 'space' => (int)$objectID, 'orderBy' => $orderBy, 'order' => $libID);
if(isset($diffExecution) && $diffExecution === true)
{