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 - #17 by tendomart

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

@tendomart sorry about the late reply. I responded on the ticket here.

Thanks looking will resume work there .

@tendomart, question for you here: https://issues.openmrs.org/browse/RA-1847?focusedCommentId=274589&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-274589

Thanks @mksd looking into this today .

hello @tendomart i have aclaimed this ticket but i sent private messege on slack could you please reply

will check and see

1 Like