diff --git a/module/custom/control.php b/module/custom/control.php
index 1120499dfb..648c51b678 100644
--- a/module/custom/control.php
+++ b/module/custom/control.php
@@ -361,9 +361,7 @@ class custom extends control
{
/* Load module and get the data from the post. */
$this->loadModel('setting');
- $data = fixer::input('post')
- ->setIF(!isset($_POST['efficiency']), 'efficiency', 1)
- ->get();
+ $data = fixer::input('post')->get();
/* Judgment of required items. */
if(($unit != $_POST['hourPoint']) and empty($_POST['scaleFactor']))
diff --git a/module/custom/js/estimate.js b/module/custom/js/estimate.js
index e855a3efb7..445f72e2e1 100644
--- a/module/custom/js/estimate.js
+++ b/module/custom/js/estimate.js
@@ -18,13 +18,13 @@ $(document).ready(function()
$('#scaleFactor + span').text(workingHours);
$('#efficiency + span').text(workingHours);
$('#efficiency').val("1");
- $('#efficiency').attr('disabled', 'diabled');
+ $('.efficiency').addClass('hidden');
}
if($(this).val() == 1 || $(this).val() == 2)
{
$('#efficiency').val('');
- $('#efficiency').removeAttr('disabled');
+ $('.efficiency').removeClass('hidden');
if($(this).val() == 1)
{
$('#scaleFactor + span').text(storyPoint);
diff --git a/module/custom/view/estimate.html.php b/module/custom/view/estimate.html.php
index f1e2daa8ad..de13cf7456 100644
--- a/module/custom/view/estimate.html.php
+++ b/module/custom/view/estimate.html.php
@@ -37,13 +37,13 @@ $lang->custom->system[] = 'estimate';
| custom->estimateEfficiency;?> |
app->session->set('programList', $this->app->getURI(true));
$this->app->session->set('PRJBrowse', $this->app->getURI(true));
- $this->app->session->set('PRJEdit', $this->app->getURI(true));
$this->app->session->set('whitelist', $this->app->getURI(true));
$this->app->session->set('PRJManageProducts', $this->app->getURI(true));
diff --git a/module/program/control.php b/module/program/control.php
index a313bc5e9b..56aaabe291 100644
--- a/module/program/control.php
+++ b/module/program/control.php
@@ -63,7 +63,6 @@ class program extends control
if(common::hasPriv('program', 'pgmcreate')) $this->lang->pageActions = html::a($this->createLink('program', 'pgmcreate'), " " . $this->lang->program->PGMCreate, '', "class='btn btn-secondary'");
$this->app->session->set('programList', $this->app->getURI(true));
- $this->app->session->set('PRJEdit', $this->app->getURI(true));
$this->app->session->set('whitelist', $this->app->getURI(true));
$this->app->session->set('PRJManageProducts', $this->app->getURI(true));
@@ -416,7 +415,7 @@ class program extends control
if(!$programID) $this->locate($this->createLink('program', 'PGMbrowse'));
setCookie("lastPGM", $programID, $this->config->cookieLife, $this->config->webRoot, '', false, true);
- $this->app->session->set('PRJEdit', $this->app->getURI(true));
+ $this->app->session->set('PGMProject', $this->app->getURI(true));
$this->app->session->set('whitelist', $this->app->getURI(true));
$this->app->session->set('PRJManageProducts', $this->app->getURI(true));
@@ -798,7 +797,6 @@ class program extends control
$this->lang->program->menu = $this->lang->PRJ->menu;
$this->lang->program->mainMenuAction = html::a('javascript:history.go(-1);', ' ' . $this->lang->goback, '', "class='btn btn-link'");
$this->app->session->set('PRJBrowse', $this->app->getURI(true));
- $this->app->session->set('PRJEdit', $this->app->getURI(true));
$this->app->session->set('whitelist', $this->app->getURI(true));
$this->app->session->set('PRJManageProducts', $this->app->getURI(true));
$this->loadModel('datatable');
@@ -994,7 +992,9 @@ class program extends control
$this->action->logHistory($actionID, $changes);
}
- $locateLink = $this->session->PRJEdit ? $this->session->PRJEdit : inLink('PRJView', "projectID=$projectID");
+ $locateLink = $this->session->PRJBrowse ? $this->session->PRJBrowse : inLink('PRJView', "projectID=$projectID");
+ if($from == 'pgmbrowse') $locateLink = inLink('PGMBrowse');
+ if($from == 'pgmproject') $locateLink = $this->session->PGMProject ? $this->session->PGMProject : inLink('PGMProject', "programID=$programID");
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locateLink));
}
@@ -1066,7 +1066,7 @@ class program extends control
$moduleIndex = array_search('program', $this->lang->noMenuModule);
if($moduleIndex !== false) unset($this->lang->noMenuModule[$moduleIndex]);
- $this->app->session->set('PRJEdit', $this->app->getURI(true));
+ $this->app->session->set('PRJBrowse', $this->app->getURI(true));
$products = $this->loadModel('product')->getProductsByProject($projectID);;
$linkedBranches = array();
diff --git a/module/workestimation/view/index.html.php b/module/workestimation/view/index.html.php
index e2c10302fb..40ebeef4ac 100644
--- a/module/workestimation/view/index.html.php
+++ b/module/workestimation/view/index.html.php
@@ -32,12 +32,12 @@
| |
|
-