From 4952dffe1fc1f4d20acddc416e0facf7a0146f39 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Mon, 25 Jan 2021 09:03:46 +0800 Subject: [PATCH] * Finish task #9069. --- module/custom/control.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/custom/control.php b/module/custom/control.php index 0a0427d642..1120499dfb 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -53,7 +53,7 @@ class custom extends control $this->app->loadConfig($module); $unitList = zget($this->config->$module, 'unitList', ''); $this->view->unitList = explode(',', $unitList); - $this->view->mainCurrency = zget($this->config->$module, 'mainCurrency', 'rmb'); + $this->view->mainCurrency = zget($this->config->$module, 'mainCurrency', 'CNY'); } if(($module == 'story' or $module == 'testcase') and $field == 'review') { @@ -387,7 +387,7 @@ class custom extends control /* Update story estimate field. */ if($unit != $_POST['hourPoint']) { - $stories = $this->dao->select('*')->from(TABLE_STORY)->fetchAll(); + $stories = $this->dao->select('id,estimate')->from(TABLE_STORY)->fetchAll(); foreach($stories as $story) { $this->dao->update(TABLE_STORY)->set('estimate')->eq($story->estimate * $this->post->scaleFactor)->where('id')->eq($story->id)->exec(); @@ -460,6 +460,7 @@ class custom extends control /** * Edit story concept. + * @param int $key * * @access public * @return void @@ -489,6 +490,7 @@ class custom extends control /** * Delete story concept. + * @param int $key * * @access public * @return void @@ -502,6 +504,8 @@ class custom extends control /** * Delete story concept. + * @param int $key + * @param string $confirm yse|no * * @access public * @return void