* [bug #59426] update order for creating doc lib.
This commit is contained in:
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user