* Finish task #100020.

This commit is contained in:
hufangzhou
2023-08-09 15:54:56 +08:00
parent b0f19d3c42
commit 50b5a7c312
+18
View File
@@ -690,6 +690,7 @@ class upgradeModel extends model
$this->loadModel('product')->refreshStats(true);
$this->loadModel('program')->refreshStats(true);
$this->updatePivotFieldsType();
$this->adjustApprovalNotifySetting();
break;
}
@@ -9694,4 +9695,21 @@ 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;
}
}