dossier: fix upload route of piece_justificative in repetitions

In repetitions, `form.index` doesn't make much sense. Turns out we
don't really need the index of the champ: we can just use the champ id.
This commit is contained in:
Pierre de La Morinerie 2020-04-02 17:30:59 +02:00
parent e869e2741e
commit 91260e2867
3 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ export default class AutoUploadController {
const attachmentRequest = {
url: autoAttachUrl,
type: 'PUT',
data: `champ_id=${champId}&blob_signed_id=${blobSignedId}`
data: `blob_signed_id=${blobSignedId}`
};
await ajax(attachmentRequest);