@@ -95,7 +95,9 @@ export function useWorkflowVersionForm(
9595 } ) ;
9696
9797 const { apiUrl : versionUrl } = useUrl (
98- `submissions/${ store . submission . id } /publications/${ publicationId } /version` ,
98+ isOJS ( ) && modeState . isPublishMode
99+ ? `submissions/${ store . submission . id } /publications/${ publicationId } /reviewEdit`
100+ : `submissions/${ store . submission . id } /publications/${ publicationId } /version` ,
99101 ) ;
100102
101103 // Prepare request body with version data
@@ -195,6 +197,15 @@ export function useWorkflowVersionForm(
195197 }
196198
197199 function getVersionIsMinorField ( { allowMinorVersion, currentValue} ) {
200+ const versionMinorValue =
201+ modeState . isPublishMode && store . selectedPublication ?. versionStage
202+ ? store . selectedPublication . versionMinor
203+ ? 'true'
204+ : 'false'
205+ : currentValue === 'true' && ! allowMinorVersion
206+ ? 'false'
207+ : currentValue ;
208+
198209 return {
199210 label : t ( 'publication.revisionSignificance.label' ) ,
200211 description : t ( 'publication.revisionSignificance.description' ) ,
@@ -208,8 +219,7 @@ export function useWorkflowVersionForm(
208219 ] ,
209220 size : 'large' ,
210221 isRequired : modeState . isPublishMode ,
211- value :
212- currentValue === 'true' && ! allowMinorVersion ? 'false' : currentValue ,
222+ value : versionMinorValue ,
213223 showWhen : modeState . isTextEditorMode
214224 ? [ 'sendToVersion' , getUnassignedVersions ( ) ]
215225 : undefined ,
@@ -346,6 +356,16 @@ export function useWorkflowVersionForm(
346356 'versionSource' ,
347357 modeState . isCreateMode ? latestPublication ?. id : null ,
348358 ) ;
359+
360+ if ( modeState . isPublishMode ) {
361+ setValue (
362+ 'versionIsMinor' ,
363+ store . selectedPublication ?. versionStage &&
364+ store . selectedPublication ?. versionMinor
365+ ? 'true'
366+ : 'false' ,
367+ ) ;
368+ }
349369 } ) ;
350370
351371 watch (
0 commit comments