fix some err
This commit is contained in:
parent
a2b644d548
commit
e03f31d3f4
|
@ -418,8 +418,7 @@ func (h *ApplicationHandler) DisplayGroupCovoiturage(w http.ResponseWriter, r *h
|
||||||
w.WriteHeader(http.StatusInternalServerError)
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
/*******************Code to store more information about mermbers groupscovoiturage**************/
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
if r.FormValue("departure") != "" {
|
if r.FormValue("departure") != "" {
|
||||||
var a any
|
var a any
|
||||||
json.Unmarshal([]byte(r.FormValue("departure")), &a)
|
json.Unmarshal([]byte(r.FormValue("departure")), &a)
|
||||||
|
@ -446,7 +445,6 @@ func (h *ApplicationHandler) DisplayGroupCovoiturage(w http.ResponseWriter, r *h
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////
|
|
||||||
request_organizatio := &groupsmanagement.SubscribeMemberRequest{
|
request_organizatio := &groupsmanagement.SubscribeMemberRequest{
|
||||||
Group: &groupsmanagement.GroupMember{
|
Group: &groupsmanagement.GroupMember{
|
||||||
Memberid: respbeneficiary.Account.Id,
|
Memberid: respbeneficiary.Account.Id,
|
||||||
|
@ -461,7 +459,7 @@ func (h *ApplicationHandler) DisplayGroupCovoiturage(w http.ResponseWriter, r *h
|
||||||
w.WriteHeader(http.StatusInternalServerError)
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
////////////////////////////////////////////////
|
/******************************************************************************************************/
|
||||||
|
|
||||||
http.Redirect(w, r, fmt.Sprintf("/app/journeys/groups_covoiturage/create/%s", resp.Group.ToStorageType().ID), http.StatusFound)
|
http.Redirect(w, r, fmt.Sprintf("/app/journeys/groups_covoiturage/create/%s", resp.Group.ToStorageType().ID), http.StatusFound)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue