* Finish task #7832.

This commit is contained in:
holan20180123
2020-09-07 14:23:36 +08:00
parent 075b9e6247
commit aaab4f691a
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ class durationestimation extends control
{
$total = 0;
foreach($this->post->workload as $value) $total += $value;
if($total != 100) $this->send(array('result' => 'fail', 'message' => $this->lang->durationestimation->workloadError));
$workloadTotal = $this->config->durationestimation->workloadTotal;
if($total != $workloadTotal) $this->send(array('result' => 'fail', 'message' => $this->lang->durationestimation->workloadError));
$this->durationestimation->save($programID);