diff --git a/app/pods/publications/publication/controller.js b/app/pods/publications/publication/controller.js index 50a3a74cc7..3ca8b58a2f 100644 --- a/app/pods/publications/publication/controller.js +++ b/app/pods/publications/publication/controller.js @@ -33,11 +33,6 @@ export default class PublicationController extends Controller { @tracked newNumacNumber = ''; @tracked showLoader = false; - - get sortedRegulationTypes() { - return this.model.regulationTypes; - } - @action setRegulationType(regulationType) { this.model.publicationFlow.set('regulationType', regulationType); @@ -48,10 +43,6 @@ export default class PublicationController extends Controller { return this.model.regulationTypes.find((regulationType) => regulationType.id === this.model.publicationFlow.get('regulationType.id')); } - get getPublicationType() { - return this.typeOptions.find((typeOption) => typeOption.id === this.model.publicationFlow.get('type.id')); - } - get getTranslationDate() { if (!this.model.publicationFlow.get('translateBefore')) { return null; diff --git a/app/services/publication-service.js b/app/services/publication-service.js index 29f44d9ecb..69b787716f 100644 --- a/app/services/publication-service.js +++ b/app/services/publication-service.js @@ -38,7 +38,7 @@ export default class PublicationService extends Service { publicationsFromQuery = await this.store.query('publication-flow', { filter: { // :exact: does not work on numbers. - 'publication-number': publicationNumber, + ':exact:publication-number': `"${publicationNumber}"`, // Needs quotes because of bug in mu-cl-resources ':exact:publication-suffix': publicationSuffix, }, }); @@ -48,7 +48,7 @@ export default class PublicationService extends Service { const publicationsFromQueryWithSameNumber = await this.store.query('publication-flow', { filter: { // :exact: does not work on numbers. - 'publication-number': publicationNumber, + ':exact:publication-number': `"${publicationNumber}"`, // Needs quotes because of bug in mu-cl-resources }, }); publicationsFromQuery = publicationsFromQueryWithSameNumber.filter((publicationFlow) => !publicationFlow.publicationSuffix);