Use camel cased attribute name availableRelationCandidates` in `_links` instead of underscored version

pull/6745/head
Wieland Lindenthal 6 years ago
parent 600e949880
commit fd271b2324
  1. 2
      frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.upgraded.component.ts
  2. 2
      lib/api/v3/work_packages/work_package_representer.rb

@ -103,7 +103,7 @@ export class WpRelationsAutocompleteComponent implements OnInit {
private autocompleteWorkPackages(query:string):Promise<WorkPackageResource[]> {
this.$element.find('.ui-autocomplete--loading').show();
return this.workPackage.available_relation_candidates.$link.$fetch({
return this.workPackage.availableRelationCandidates.$link.$fetch({
query: query,
type: this.filterCandidatesFor || this.selectedRelationType
}).then((collection:CollectionResource) => {

@ -134,7 +134,7 @@ module API
}
end
link :available_relation_candidates do
link :availableRelationCandidates do
next if represented.new_record?
{

Loading…
Cancel
Save