diff --git a/module/product/control.php b/module/product/control.php index c0a7ce0d76..078a0808f3 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -376,7 +376,7 @@ class product extends control /* Change the projects set of the program. */ if(($_POST['program'] != $product->program) and $projects) { - $this->product->updateProjects($projects, $_POST['program'], $_POST['comfirmChange']); + $this->product->updateProjects($projects, $_POST['program'], $_POST['confirmChange']); } if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError())); diff --git a/module/product/js/edit.js b/module/product/js/edit.js index 187eed0e8b..3ab6c61bea 100644 --- a/module/product/js/edit.js +++ b/module/product/js/edit.js @@ -26,11 +26,11 @@ $(function() if(singleLinkProjects) alert(PGMChangeTip); if(multipleLinkProjects && confirm(confirmChangePGM)) { - $('#comfirmChange').val('yes'); + $('#confirmChange').val('yes'); } else { - $('#comfirmChange').val('no'); + $('#confirmChange').val('no'); } } }) diff --git a/module/product/model.php b/module/product/model.php index 13bffd140b..95c06ce9df 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -545,7 +545,7 @@ class productModel extends model ->setIF($this->post->acl == 'open', 'whitelist', '') ->join('whitelist', ',') ->stripTags($this->config->product->editor->edit['id'], $this->config->allowedTags) - ->remove('uid,comfirmChange') + ->remove('uid,confirmChange') ->get(); $product = $this->loadModel('file')->processImgURL($product, $this->config->product->editor->edit['id'], $this->post->uid); @@ -1516,11 +1516,11 @@ class productModel extends model * @access public * @return void */ - public function updateProjects($projects, $programID, $comfirmChange = 'no') + public function updateProjects($projects, $programID, $confirmChange = 'no') { foreach($projects as $project) { - if((count($project->product) == 1) or $comfirmChange == 'yes') + if((count($project->product) == 1) or $confirmChange == 'yes') { $this->dao->update(TABLE_PROJECT) ->set('parent')->eq($programID) diff --git a/module/product/view/edit.html.php b/module/product/view/edit.html.php index 077832c3cc..4da0b1fdbd 100644 --- a/module/product/view/edit.html.php +++ b/module/product/view/edit.html.php @@ -33,7 +33,7 @@