Replace # on autocomplete for WPs

pull/6796/head
Oliver Günther 6 years ago
parent 5b26d97b2c
commit d10a2dfa02
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 3
      frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.upgraded.component.ts

@ -101,6 +101,9 @@ export class WpRelationsAutocompleteComponent implements OnInit {
}
private autocompleteWorkPackages(query:string):Promise<WorkPackageResource[]> {
// Remove prefix # from search
query = query.replace(/^#/, '');
this.$element.find('.ui-autocomplete--loading').show();
return this.workPackage.availableRelationCandidates.$link.$fetch({

Loading…
Cancel
Save