Skip to content

Commit 4b3988d

Browse files
committed
fix
1 parent a1013f7 commit 4b3988d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/form/StatusForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function saveMetadatas()
8787
}
8888
$keep[] = $metadata->key;
8989
}
90-
$query = Metadata::find()->andWhere(['workflow_id' => $this->status->workflow_id]);
90+
$query = Metadata::find()->andWhere(['status_id' => $this->status->id, 'workflow_id' => $this->status->workflow_id]);
9191
if ($keep) {
9292
$query->andWhere(['not in', 'key', $keep]);
9393
}

0 commit comments

Comments
 (0)