fix: 任务流转会出错
This commit is contained in:
parent
7dcd8b29fc
commit
ac6b90c986
@ -512,7 +512,7 @@ class ProjectTask extends AbstractModel
|
|||||||
// 判断符合流转
|
// 判断符合流转
|
||||||
$currentFlowItem = ProjectFlowItem::find($this->flow_item_id);
|
$currentFlowItem = ProjectFlowItem::find($this->flow_item_id);
|
||||||
if ($currentFlowItem) {
|
if ($currentFlowItem) {
|
||||||
if (!in_array($currentFlowItem->id, $newFlowItem->turns)) {
|
if (!in_array($newFlowItem->id, $currentFlowItem->turns)) {
|
||||||
throw new ApiException("当前状态[{$currentFlowItem->name}]不可流转到[{$newFlowItem->name}]");
|
throw new ApiException("当前状态[{$currentFlowItem->name}]不可流转到[{$newFlowItem->name}]");
|
||||||
}
|
}
|
||||||
if ($currentFlowItem->userlimit) {
|
if ($currentFlowItem->userlimit) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user