mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Merge pull request #4982 from mabashian/4860-delete-tags
Smart search tag deletion (again)
This commit is contained in:
@@ -212,7 +212,15 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
|
|||||||
params.page = '1';
|
params.page = '1';
|
||||||
queryset = _.merge(queryset, params, (objectValue, sourceValue, key, object) => {
|
queryset = _.merge(queryset, params, (objectValue, sourceValue, key, object) => {
|
||||||
if (object[key] && object[key] !== sourceValue){
|
if (object[key] && object[key] !== sourceValue){
|
||||||
return [object[key], sourceValue];
|
if(_.isArray(object[key])) {
|
||||||
|
// Add the new value to the array and return
|
||||||
|
object[key].push(sourceValue);
|
||||||
|
return object[key];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Start the array of keys
|
||||||
|
return [object[key], sourceValue];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// // https://lodash.com/docs/3.10.1#merge
|
// // https://lodash.com/docs/3.10.1#merge
|
||||||
|
|||||||
Reference in New Issue
Block a user