Merge pull request #6506 from opf/fix/28170/reset-query-props-on-all-open

[28170] Clear query_props on click to all open
[ci skip]
pull/6509/head
Oliver Günther 6 years ago committed by GitHub
commit 99d15a2812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/src/app/components/wp-query-select/wp-query-select-dropdown.component.ts
  2. 2
      frontend/src/app/components/wp-query-select/wp-static-queries.service.ts

@ -401,7 +401,7 @@ export class WorkPackageQuerySelectDropdownComponent implements OnInit, OnDestro
const currentId = _.toString(this.$state.params.query_id);
let opts = {reload: false};
if (params.query_id && params.query_id === currentId.toString()) {
if (item.identifier || params.query_id && params.query_id === currentId.toString()) {
this.wpListChecksumService.clear();
opts.reload = true;
}

@ -90,7 +90,7 @@ export class WorkPackageStaticQueriesService {
{
identifier: 'all_open',
label: this.text.all_open,
query_props: '{%22c%22:[%22id%22,%22subject%22,%22type%22,%22status%22,%22assignee%22,%22version%22,%22updatedAt%22],%22t%22:%22updatedAt:desc,parent:asc%22}'
query_props: null
}
] as IAutocompleteItem[];

Loading…
Cancel
Save