Merge branch 'fix-groups-long-url' into 'master'

Make group skip validation in the frontend

Closes #29236

See merge request !10426
This commit is contained in:
Jacob Schatz 2017-04-05 13:58:53 +00:00
commit 5771ee400f
2 changed files with 6 additions and 2 deletions

View File

@ -45,14 +45,14 @@ window.GroupsSelect = (function() {
page,
per_page: GroupsSelect.PER_PAGE,
all_available,
skip_groups,
};
},
results: function (data, page) {
if (data.length) return { results: [] };
const results = data.length ? data : data.results || [];
const groups = data.length ? data : data.results || [];
const more = data.pagination ? data.pagination.more : false;
const results = groups.filter(group => skip_groups.indexOf(group.id) === -1);
return {
results,

View File

@ -0,0 +1,4 @@
---
title: Skip groups validation on the client
merge_request:
author: