Fails silently when creating/editing relationships with non-Person names (RA-1847)

Hello Devs ,

REF https://issues.openmrs.org/browse/RA-1847?attachmentSortBy=fileName

I get this error as i inspect the reason as to why patient registration fails silently given an unexistent person and a certain relationship type.

Does anyone know how where PersonService.getPersons should have been declared ?

This especially happens when then "Enter person name " field is doing a typeahead for the text entered by the user .

I have discovered this especially happens when then "Enter person name " field is doing a typeahead for the text entered by the user .

found in personRelation.js

 $scope.getPersons = function (searchString) {
             return PersonService.getPersons({'q': searchString, 'v': 'full'});
        };

Related to Multiple Relationship widgets

See screenshot

@tendomart give me some few steps to reproduce this

@herbert24 simply login and register a patient.

On the last step , select Relationship type or leave it default and enter any string in the "Enter Person Name " field .

As the field tries to ping the database for String entered , the Error should be generated as per the screenshot .

Does that help ?

1 Like

sure let me check it out