Skip to content

Commit

Permalink
BAH-3454 | Refactor. removed hardcoded locale in order to search for …
Browse files Browse the repository at this point in the history
…the concept in both user and default locale (#105)

* BAH-3454 | Refactor. search for the concept in both user and default locales

* BAH-3454 | Fix. test
  • Loading branch information
SanoferSameera authored Jan 23, 2024
1 parent 7dddf33 commit 77d4b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/form-builder/helpers/UrlHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class UrlHelper {

getFullConceptRepresentation(conceptName) {
return '/openmrs/ws/rest/v1/concept?' +
`s=byFullySpecifiedName&locale=en&name=${conceptName}&v=bahmni`;
`s=byFullySpecifiedName&name=${conceptName}&v=bahmni`;
}

bahmniFormTranslateUrl(formName, formVersion, locale, formUuid) {
Expand Down
2 changes: 1 addition & 1 deletion test/form-builder/helpers/UrlHelper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('UrlHelper', () => {
it('should return full concept representation', () => {
const conceptRepresentation = urlHelper.getFullConceptRepresentation('someConcept');
const expectedUrl = '/openmrs/ws/rest/v1/concept?' +
's=byFullySpecifiedName&locale=en&name=someConcept&v=bahmni';
's=byFullySpecifiedName&name=someConcept&v=bahmni';
expect(conceptRepresentation).to.eql(expectedUrl);
});

Expand Down

0 comments on commit 77d4b56

Please sign in to comment.