Skip to content

Commit 9474154

Browse files
committed
pkp/pkp-lib#9295 fixed field name
1 parent 88d51ac commit 9474154

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/components/Form/fields/FieldIssueSelection.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,7 @@ onMounted(async () => {
350350
351351
// already pre-existed assignment type that requires issue selection and an existing issue ID,
352352
// fetch the issues so the dropdown is populated and the correct issue is pre-selected
353-
if (
354-
selectedAssignmentType.value &&
355-
selectedIssueId.value &&
356-
showIssueDropdown.value
357-
) {
353+
if (selectedAssignmentType.value && showIssueDropdown.value) {
358354
await fetchIssues();
359355
}
360356

src/pages/workflow/composables/useWorkflowVersionForm.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,14 @@ export function useWorkflowVersionForm(
106106

107107
if (isOJS()) {
108108
// if the issue count is 0, e.g. issueless context,
109-
// we can safely set the issueId and status to null and
110-
// STATUS_READY_TO_PUBLISH
109+
// we can safely set the issueId to null and status to STATUS_READY_TO_PUBLISH
111110
if (issueCount === 0) {
112111
requestBody.issueId = null;
113112
requestBody.prePublishStatus = pkp.const.STATUS_READY_TO_PUBLISH;
114113
}
115114
// Add issue assignment data if in publish mode and issue assignment is provided
116-
else if (modeState.isPublishMode && formData.issueAssignment) {
117-
const issueData = formData.issueAssignment;
115+
else if (modeState.isPublishMode && formData.issueId) {
116+
const issueData = formData.issueId;
118117

119118
requestBody.issueId = issueData.issueId;
120119
requestBody.prePublishStatus = issueData.publicationStatus;
@@ -325,7 +324,7 @@ export function useWorkflowVersionForm(
325324
// it's in publish mode
326325
// have issues
327326
if (modeState.isPublishMode && issueCount > 0 && isOJS()) {
328-
addField('issueAssignment', {
327+
addField('issueId', {
329328
component: 'FieldIssueSelection',
330329
issueCount: issueCount,
331330
publication: store.selectedPublication,

0 commit comments

Comments
 (0)