-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFR] Fix maExportToCsvButton does not return entries references and empty data when filters contains boolean field #461
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ define(function () { | |
this.actions = view.actions(); | ||
this.batchActions = view.batchActions(); | ||
this.loadingPage = false; | ||
this.search = $stateParams.search; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
this.filters = view.filters(); | ||
this.hasFilters = Object.keys(this.filters).length > 0; | ||
this.dataStore = dataStore; | ||
|
@@ -40,13 +41,12 @@ define(function () { | |
} | ||
|
||
var progression = this.progression, | ||
self = this, | ||
filters = this.$stateParams.search; | ||
self = this; | ||
|
||
progression.start(); | ||
|
||
this.ReadQueries | ||
.getAll(this.view, page, true, filters, this.sortField, this.sortDir) | ||
.getAll(this.view, page, true, this.search, this.sortField, this.sortDir) | ||
.then(function (nextData) { | ||
progression.done(); | ||
self.entries = self.entries.concat(nextData.entries); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ define(function (require) { | |
'entity': '=', | ||
'selection': '=', | ||
batchButtons: '&', | ||
datastore: '=' | ||
datastore: '=', | ||
search: '=' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is... Angularjs black magic! |
||
}, | ||
template: viewActionsTemplate, | ||
link: function($scope, element, attrs, controller, transcludeFn) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use
$stateParams.search
instead ofscope.search()
, it's not the right value (but it should be the same value as inListController
...).