correction erreur redirect after deleteMachine
This commit is contained in:
parent
877db8fe17
commit
c8c9cd4a5b
@ -781,7 +781,7 @@ class MachineDeleteController(AuthenticatedRestController):
|
||||
|
||||
""" Gestion des requêtes post sur ce controller """
|
||||
@expose()
|
||||
def post(self, residence, member_uid, machine_id, redirect = True):
|
||||
def post(self, residence, member_uid, machine_id, go_redirect = True):
|
||||
residence_dn = Residences.get_dn_by_name(self.user, residence)
|
||||
|
||||
# Récupération du membre et de la machine
|
||||
@ -806,7 +806,7 @@ class MachineDeleteController(AuthenticatedRestController):
|
||||
#end if
|
||||
|
||||
# On redirige sur la page d'édition du membre
|
||||
if redirect:
|
||||
if go_redirect:
|
||||
redirect("/edit/member/" + residence + "/" + member_uid)
|
||||
#end if
|
||||
#end def
|
||||
|
Loading…
Reference in New Issue
Block a user