mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Makes search filters additive again
This commit is contained in:
@@ -336,7 +336,7 @@ function QuerysetService ($q, Rest, ProcessErrors, $rootScope, Wait, DjangoSearc
|
|||||||
mergeQueryset (queryset, additional, singleSearchParam) {
|
mergeQueryset (queryset, additional, singleSearchParam) {
|
||||||
const space = '%20and%20';
|
const space = '%20and%20';
|
||||||
|
|
||||||
const merged = _.merge({}, queryset, additional, (objectValue, sourceValue, key, object) => {
|
const merged = _.mergeWith({}, queryset, additional, (objectValue, sourceValue, key, object) => {
|
||||||
if (!(object[key] && object[key] !== sourceValue)) {
|
if (!(object[key] && object[key] !== sourceValue)) {
|
||||||
// // https://lodash.com/docs/3.10.1#each
|
// // https://lodash.com/docs/3.10.1#each
|
||||||
// If this returns undefined merging is handled by default _.merge algorithm
|
// If this returns undefined merging is handled by default _.merge algorithm
|
||||||
|
|||||||
Reference in New Issue
Block a user