* add vision for story.

This commit is contained in:
tanghucheng
2022-01-28 09:50:21 +08:00
parent ec84a996de
commit f264c07984
4 changed files with 8 additions and 0 deletions
+1
View File
@@ -15,3 +15,4 @@ ALTER TABLE `zt_todo` ADD `vision` varchar(10) NOT NULL DEFAULT 'rnd' AFTER `del
ALTER TABLE `zt_block` ADD `vision` varchar(10) NOT NULL DEFAULT 'rnd' AFTER `account`;
ALTER TABLE `zt_block` DROP INDEX `account_module_type_order`, ADD UNIQUE `account_vision_module_type_order` (`account`, `vision`, `module`, `type`, `order`);
ALTER TABLE `zt_effort` ADD `vision` varchar(10) NOT NULL DEFAULT 'rnd' AFTER `id`;
ALTER TABLE `zt_story` ADD `vision` varchar(10) NOT NULL DEFAULT 'rnd' AFTER `id`;
@@ -165,6 +165,7 @@
<?php echo html::hidden('type', $type) . html::submitButton();?>
<?php echo html::hidden('product', $productID);?>
<?php echo html::hidden('plan', $planID);?>
<?php echo html::hidden('vision', 'lite');?>
<?php echo $gobackLink ? html::a($gobackLink, $lang->goback, '', 'class="btn btn-wide"') : html::backButton();?>
</td>
</tr>
@@ -0,0 +1,5 @@
<?php
$lang->todo->typeList['task'] = '卡片';
unset($lang->todo->typeList['cycle']);
unset($lang->todo->typeList['bug']);
unset($lang->todo->typeList['testtask']);
+1
View File
@@ -2913,6 +2913,7 @@ class storyModel extends model
->from(TABLE_STORY)
->where('deleted')->eq(0)
->andWhere('type')->eq($type)
->andWhere('vision')->eq($this->config->vision)
->andWhere('assignedTo')->eq($account)
->beginIF(!empty($skipProductIDList))->andWhere('product')->notin($skipProductIDList)->fi()
->orderBy('id_desc')