|
|
@ -8,7 +8,6 @@ angular.module('openproject.models') |
|
|
|
angular.extend(this, data, options); |
|
|
|
angular.extend(this, data, options); |
|
|
|
|
|
|
|
|
|
|
|
this.group_by = this.group_by || ''; |
|
|
|
this.group_by = this.group_by || ''; |
|
|
|
this.selectedColumns = this.selectedColumns || []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.filters === undefined){ |
|
|
|
if (this.filters === undefined){ |
|
|
|
this.filters = []; |
|
|
|
this.filters = []; |
|
|
@ -32,9 +31,9 @@ angular.module('openproject.models') |
|
|
|
return angular.extend.apply(this, [ |
|
|
|
return angular.extend.apply(this, [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
'f[]': this.getFilterNames(this.getActiveConfiguredFilters()), |
|
|
|
'f[]': this.getFilterNames(this.getActiveConfiguredFilters()), |
|
|
|
'c[]': ['id'].concat(this.selectedColumns.map(function(column) { |
|
|
|
'c[]': this.columns.map(function(column) { |
|
|
|
return column.name; |
|
|
|
return column.name; |
|
|
|
})), |
|
|
|
}), |
|
|
|
'group_by': this.group_by, |
|
|
|
'group_by': this.group_by, |
|
|
|
'query_id': this.id, |
|
|
|
'query_id': this.id, |
|
|
|
'sort': this.sortation.encode() |
|
|
|
'sort': this.sortation.encode() |
|
|
|