* Code for task #56547.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE `zt_review` ADD docVersion smallint(6) NOT NULL AFTER `doc`;
|
||||
@@ -9420,6 +9420,7 @@ CREATE TABLE IF NOT EXISTS `zt_review` (
|
||||
`object` mediumint(8) NOT NULL,
|
||||
`template` mediumint(8) NOT NULL,
|
||||
`doc` mediumint(8) DEFAULT NULL,
|
||||
`docVersion` smallint(6) DEFAULT NULL,
|
||||
`status` char(30) NOT NULL,
|
||||
`reviewedBy` varchar(255) NOT NULL,
|
||||
`auditedBy` varchar(255) NOT NULL,
|
||||
|
||||
Regular → Executable
+22
@@ -792,6 +792,28 @@ class doc extends control
|
||||
return print($select);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax get docs by lib.
|
||||
*
|
||||
* @param int $libID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function ajaxGetDocs($libID)
|
||||
{
|
||||
if(!$libID) return print(html::select('doc', '', '', "class='form-control chosen'"));
|
||||
|
||||
$docIdList = $this->doc->getPrivDocs($libID, 0);
|
||||
$docs = $this->dao->select('id, title')->from(TABLE_DOC)
|
||||
->where('lib')->eq($libID)
|
||||
->andWhere('deleted')->eq(0)
|
||||
->andWhere('id')->in($docIdList)
|
||||
->orderBy('`order` asc')
|
||||
->fetchPairs();
|
||||
|
||||
return print(html::select('doc', $docs, '', "class='form-control chosen'"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax save draft.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user