Multiple Relationship widgets

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 .

found in personRelation.js

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