diff --git a/db/update2.2.sql b/db/update2.2.sql index bed935d1e1..c8ca08178f 100644 --- a/db/update2.2.sql +++ b/db/update2.2.sql @@ -1 +1 @@ -ALTER TABLE `zt_story` ADD `origin` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `plan` ; +ALTER TABLE `zt_story` ADD `source` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `plan` ; diff --git a/module/mail/control.php b/module/mail/control.php index 3aa3a58c25..0bbfc9b0de 100755 --- a/module/mail/control.php +++ b/module/mail/control.php @@ -88,7 +88,7 @@ EOT; $configPath = $this->app->getModuleExtPath('mail', 'config'); if(is_writable($configPath)) { - if(file_put_contents($configPath . 'zzzmail.php', $config)) + if(file_put_contents($configPath . 'zzzemail.php', $config)) { /* Send test mail */ $this->mail->send($this->app->user->account, $this->lang->mail->subject, $this->lang->mail->content,""); diff --git a/module/product/config.php b/module/product/config.php index 8517e3c9bb..e3fd3c9e22 100644 --- a/module/product/config.php +++ b/module/product/config.php @@ -7,7 +7,7 @@ $config->product->search['fields']['id'] = $lang->story->id; $config->product->search['fields']['keywords'] = $lang->story->keywords; $config->product->search['fields']['pri'] = $lang->story->pri; $config->product->search['fields']['plan'] = $lang->story->plan; -$config->product->search['fields']['origin'] = $lang->story->origin; +$config->product->search['fields']['source'] = $lang->story->source; $config->product->search['fields']['assignedTo'] = $lang->story->assignedTo; $config->product->search['fields']['product'] = $lang->story->product; $config->product->search['fields']['openedBy'] = $lang->story->openedBy; @@ -22,7 +22,7 @@ $config->product->search['params']['title'] = array('operator' => 'includ $config->product->search['params']['keywords'] = array('operator' => 'include', 'control' => 'input', 'values' => ''); $config->product->search['params']['pri'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->story->priList); $config->product->search['params']['plan'] = array('operator' => '=', 'control' => 'select', 'values' => ''); -$config->product->search['params']['origin'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->story->originList); +$config->product->search['params']['source'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->story->sourceList); $config->product->search['params']['product'] = array('operator' => '=', 'control' => 'select', 'values' => ''); $config->product->search['params']['assignedTo'] = array('operator' => '=', 'control' => 'select', 'values' => 'users'); $config->product->search['params']['resolvedBy'] = array('operator' => '=', 'control' => 'select', 'values' => 'users'); diff --git a/module/story/config.php b/module/story/config.php index ff0e2b17b5..ed917ef425 100644 --- a/module/story/config.php +++ b/module/story/config.php @@ -9,7 +9,7 @@ $config->story->editor->create = array('id' => 'spec,verify', 'tools' => 'simple $config->story->editor->change = array('id' => 'spec,verify', 'tools' => 'simpleTools'); $config->story->list->exportFields = ' - id, product, module, plan, origin, title, spec, verify, keywords, + id, product, module, plan, source, title, spec, verify, keywords, pri, estimate, status, stage, openedBy, openedDate, assignedTo, assignedDate, mailto, reviewedBy, reviewedDate, diff --git a/module/story/lang/en.php b/module/story/lang/en.php index c6317553a7..09ba0e7d4c 100644 --- a/module/story/lang/en.php +++ b/module/story/lang/en.php @@ -30,7 +30,7 @@ $lang->story->common = 'Story'; $lang->story->id = 'ID'; $lang->story->product = 'Product'; $lang->story->module = 'Module'; -$lang->story->origin = 'Origin'; +$lang->story->source = 'Source'; $lang->story->release = 'Release'; $lang->story->bug = 'Related Bug'; $lang->story->title = 'Title'; @@ -102,14 +102,14 @@ $lang->story->reviewResultList['revert'] = 'Revert'; $lang->story->reviewResultList['clarify']= 'Clarify'; $lang->story->reviewResultList['reject'] = 'Reject'; -$lang->story->originList[''] = ''; -$lang->story->originList['custom'] = 'Custom'; -$lang->story->originList['PO'] = 'PO'; -$lang->story->originList['market'] = 'Market'; -$lang->story->originList['service'] = 'Service'; -$lang->story->originList['competitor'] = 'Competitor'; -$lang->story->originList['partner'] = 'Partner'; -$lang->story->originList['other'] = 'Other'; +$lang->story->sourceList[''] = ''; +$lang->story->sourceList['custom'] = 'Custom'; +$lang->story->sourceList['PO'] = 'PO'; +$lang->story->sourceList['market'] = 'Market'; +$lang->story->sourceList['service'] = 'Service'; +$lang->story->sourceList['competitor'] = 'Competitor'; +$lang->story->sourceList['partner'] = 'Partner'; +$lang->story->sourceList['other'] = 'Other'; $lang->story->priList[] = ''; $lang->story->priList[3] = '3'; diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php index ab1305f8bc..a53cc4ca64 100644 --- a/module/story/lang/zh-cn.php +++ b/module/story/lang/zh-cn.php @@ -30,7 +30,7 @@ $lang->story->common = '需求'; $lang->story->id = '编号'; $lang->story->product = '所属产品'; $lang->story->module = '所属模块'; -$lang->story->origin = '来源'; +$lang->story->source = '来源'; $lang->story->release = '发布计划'; $lang->story->bug = '相关bug'; $lang->story->title = '需求名称'; @@ -102,14 +102,14 @@ $lang->story->reviewResultList['revert'] = '撤销变更'; $lang->story->reviewResultList['clarify']= '有待明确'; $lang->story->reviewResultList['reject'] = '拒绝'; -$lang->story->originList[''] = ''; -$lang->story->originList['custom'] = '客户'; -$lang->story->originList['PO'] = '产品经理'; -$lang->story->originList['market'] = '市场'; -$lang->story->originList['service'] = '客服'; -$lang->story->originList['competitor'] = '竞争对手'; -$lang->story->originList['partner'] = '合伙人'; -$lang->story->originList['other'] = '其他'; +$lang->story->sourceList[''] = ''; +$lang->story->sourceList['custom'] = '客户'; +$lang->story->sourceList['PO'] = '产品经理'; +$lang->story->sourceList['market'] = '市场'; +$lang->story->sourceList['service'] = '客服'; +$lang->story->sourceList['competitor'] = '竞争对手'; +$lang->story->sourceList['partner'] = '合伙人'; +$lang->story->sourceList['other'] = '其他'; $lang->story->priList[] = ''; $lang->story->priList[3] = '3'; diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 22f6b7d8c9..7e6dd80d70 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -27,8 +27,8 @@ - story->origin;?> - story->originList, '', 'class=select-3');?> + story->source;?> + story->sourceList, '', 'class=select-3');?> story->title;?> diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index 1313f5ada3..ae39c7f542 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -54,8 +54,8 @@ plan, 'class=select-1');?> - story->origin;?> - story->originList, $lang->story->originList[$story->origin], 'class=select-1');?> + story->source;?> + story->sourceList, $lang->story->sourceList[$story->source], 'class=select-1');?> story->status;?> diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index 7d5c2a3537..d9652f5c73 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -92,8 +92,8 @@ planTitle)) if(!common::printLink('productplan', 'view', "planID=$story->plan", $story->planTitle)) echo $story->planTitle;?> - story->origin;?> - story->originList[$story->origin];?> + story->source;?> + story->sourceList[$story->source];?> story->status;?>