Verified Commit 67496fe5 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Replace criteria orgId with registrationNumber

parent 3eaaf31e
Pipeline #6985 canceled with stages
......@@ -191,7 +191,7 @@ $('#org').typeahead(
},
{
name: 'organizations',
displayKey: 'orgId',
displayKey: 'registrationNumber',
templates: {
empty: function() {
return "<span class='well well-sm'>"+$('#noOriginatorFound').html()+"</span>";
......@@ -201,7 +201,7 @@ $('#org').typeahead(
"<span>"
+ "<span style='font-family:Helvetica, sans-serif;'>";
if(organization.orgId) {
if(organization.registrationNumber) {
display += organization.displayName + "</span></span><br>";
}
......@@ -212,7 +212,7 @@ $('#org').typeahead(
organizations.search(query, function(suggestions) {
var i = suggestions.length
while (i--) {
if ($('#orgs').find('[data-orgid="'+ suggestions[i].orgId +'"]').length)
if ($('#orgs').find('[data-orgid="'+ suggestions[i].registrationNumber +'"]').length)
suggestions.splice(i, 1);
}
cb(suggestions);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment