Skip to content

Commit

Permalink
Merge branch 'development' into DES/enhancement/#732-vlc-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brenner-company committed Apr 21, 2021
2 parents 300c08d + 8cb8682 commit 12cb5f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions app/pods/publications/publication/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions app/services/publication-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
Expand All @@ -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);
Expand Down

0 comments on commit 12cb5f1

Please sign in to comment.