* Revert the code.

This commit is contained in:
hufangzhou
2023-08-10 11:07:34 +08:00
parent 7a6232fdec
commit 1e181ce7ea
-18
View File
@@ -690,7 +690,6 @@ class upgradeModel extends model
$this->loadModel('product')->refreshStats(true);
$this->loadModel('program')->refreshStats(true);
$this->updatePivotFieldsType();
$this->adjustApprovalNotifySetting();
break;
}
@@ -9695,21 +9694,4 @@ class upgradeModel extends model
$this->dao->update(TABLE_PIVOT)->data($data)->where('id')->eq($pivot->id)->exec();
}
}
/**
* Update approval flow actions in notify setting.
*
* @access public
* @return void
*/
public function adjustApprovalNotifySetting()
{
$settings = $this->loadModel('setting')->getItem('owner=system&module=message&key=setting');
$settings = str_replace(array("\"submit\"", "\"cancel\"", "\"review\""), array("\"approvalsubmit\"", "\"approvalcancel\"", "\"approvalreview\""), $settings);
$this->setting->setItem('system.message.setting', $settings);
return true;
}
}