Skip to content
Snippets Groups Projects
Commit e0ed5c5a authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Merge branch 'redmine-issues/26138' into 'develop'

REDMINE_ISSUE-26138 | Liste signalements filtrés - Incohérence des résultats lors de la recherche par titre des signalements

See merge request !873
parents e9975a3a fafbf5df
No related branches found
No related tags found
1 merge request!873REDMINE_ISSUE-26138 | Liste signalements filtrés - Incohérence des résultats lors de la recherche par titre des signalements
......@@ -37,7 +37,12 @@ const featureAPI = {
},
async getPaginatedFeatures(url) {
const response = await axios.get(url);
// Cancel any ongoing search request.
store.dispatch('CANCEL_CURRENT_SEARCH_REQUEST');
// Prepare the cancel token for the new request and store it.
const cancelToken = axios.CancelToken.source();
store.commit('SET_CANCELLABLE_SEARCH_REQUEST', cancelToken);
const response = await axios.get(url, { cancelToken: cancelToken.token });
if (
response.status === 200 &&
response.data
......
......@@ -156,7 +156,7 @@ export default new Vuex.Store({
password: payload.password,
})
.then((response) => {
if (response.status === 201 && response.data) {
if (response.status === 200 && response.data) {
commit('SET_USER', response.data.user);
dispatch('REDIRECT_AFTER_LOGIN');
dispatch('GET_USER_LEVEL_PROJECTS');
......
......@@ -397,9 +397,9 @@ export default {
const ssoResponse = await userAPI.signup({
...this.signupForm,
// Ajout du label personnalisé pour affichage plus précis dans admin OGS
"comments": `{"${this.commentsFieldLabel}":"${this.signupForm.comments}"}`,
comments: `{"${this.commentsFieldLabel}":"${this.signupForm.comments}"}`,
// Pour permettre la visualisation dans OGS Maps, l'utilisateur doit être ajouté à un groupe OGS, mis en dur pour aller vite pour l'instant
"usergroup_roles":[{"organisation":{"id":1}}]
usergroup_roles:[{ organisation: { id: 1 } }]
}, this.ssoSignupUrl);
if (ssoResponse.status !== 201) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment