* finish task #8265.
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
ALTER TABLE `zt_doc` ADD `mailto` text AFTER `editedDate`;
|
||||
ALTER TABLE `zt_task` CHANGE `realStarted` `realStarted` datetime NOT NULL AFTER `estStarted`;
|
||||
ALTER TABLE `zt_group` CHANGE `program` `PRJ` mediumint(8) unsigned NOT NULL DEFAULT 0;
|
||||
|
||||
ALTER TABLE `zt_notify` ADD INDEX `objectType_toList_status` (`objectType`, `toList`, `status`);
|
||||
ALTER TABLE `zt_user` ADD INDEX `deleted` (`deleted`);
|
||||
ALTER TABLE `zt_case` ADD INDEX `fromBug` (`fromBug`);
|
||||
ALTER TABLE `zt_bug` ADD INDEX `toStory` (`toStory`);
|
||||
ALTER TABLE `zt_task` ADD INDEX `parent` (`parent`);
|
||||
ALTER TABLE `zt_bug` ADD INDEX `result` (`result`);
|
||||
ALTER TABLE `zt_history` ADD INDEX `action` (`action`);
|
||||
ALTER TABLE `zt_action` ADD INDEX `action` (`action`);
|
||||
ALTER TABLE `zt_action` DROP INDEX `product`;
|
||||
|
||||
@@ -209,11 +209,11 @@ class actionModel extends model
|
||||
$actions = $this->dao->select('*')->from(TABLE_ACTION)
|
||||
->beginIF($objectType == 'project')
|
||||
->where("objectType IN('project', 'testtask', 'build')")
|
||||
->andWhere('project')->eq($objectID)
|
||||
->andWhere('project')->eq((int)$objectID)
|
||||
->fi()
|
||||
->beginIF($objectType != 'project')
|
||||
->where('objectType')->eq($objectType)
|
||||
->andWhere('objectID')->eq($objectID)
|
||||
->andWhere('objectID')->eq((int)$objectID)
|
||||
->fi()
|
||||
->orderBy('date, id')->fetchAll('id');
|
||||
$histories = $this->getHistory(array_keys($actions));
|
||||
|
||||
@@ -2050,8 +2050,8 @@ class storyModel extends model
|
||||
->leftJoin(TABLE_PROJECTSTORY)->alias('t2')->on('t1.id=t2.story')
|
||||
->where($sql)
|
||||
->beginIF($productID != 'all' and $productID != '')->andWhere('t1.`product`')->eq((int)$productID)->fi()
|
||||
->andWhere('deleted')->eq(0)
|
||||
->andWhere('type')->eq($type)
|
||||
->andWhere('t1.deleted')->eq(0)
|
||||
->andWhere('t1.type')->eq($type)
|
||||
->orderBy($orderBy)
|
||||
->page($pager, 't1.id')
|
||||
->fetchAll('id');
|
||||
|
||||
Reference in New Issue
Block a user