* Remove duplicate code.

This commit is contained in:
holan20180123
2021-02-09 14:20:03 +08:00
parent e10844807b
commit 04d48a701d
2 changed files with 1 additions and 15 deletions
+1 -1
View File
@@ -640,7 +640,7 @@ class projectrelease extends control
*/
public function changeStatus($releaseID, $status)
{
$this->projectrelease->changeStatus($releaseID, $status);
$this->loadModel('release')->changeStatus($releaseID, $status);
if(dao::isError()) die(js::error(dao::getError()));
$actionID = $this->loadModel('action')->create('release', $releaseID, 'changestatus', '', $status);
die(js::reload('parent'));