get idop in saga_retour_asynchrone from POST dictionnary (fixes #19609)

This commit is contained in:
Benjamin Dauvergne 2017-10-24 18:47:50 +02:00 committed by Thomas NOEL
parent e433e148e5
commit a139e29a0a
1 changed files with 4 additions and 1 deletions

View File

@ -151,7 +151,10 @@ def saga_retour_synchrone(request):
@csrf_exempt
def saga_retour_asynchrone(request):
logger = logging.getLogger('combo_plugin_nanterre.saga_retour_asynchrone')
idop = request.GET.get('idop')
idop = request.POST.get('idop')
if not idop:
logger.error('[rsu/saga] retour-asynchrone: no idop')
return HttpResponse('{"err": 1}', content_type='application/json')
payload = {'idop': idop}
err = 0
try: