From 1c628064edd95b824403e67776c088fba2a4fec4 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Fri, 25 Oct 2019 10:30:27 +0200
Subject: [PATCH] FEAT #12070 TIME 0:10 fix save with private indexing model

---
 src/frontend/app/indexation/indexation.component.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/frontend/app/indexation/indexation.component.ts b/src/frontend/app/indexation/indexation.component.ts
index 465942d3c32..96882ae86e1 100644
--- a/src/frontend/app/indexation/indexation.component.ts
+++ b/src/frontend/app/indexation/indexation.component.ts
@@ -146,6 +146,7 @@ export class IndexationComponent implements OnInit {
         if (this.indexingForm.isValidForm()) {
             const formatdatas = this.formatDatas(this.indexingForm.getDatas());
 
+            formatdatas['modelId'] = this.currentIndexingModel.master !== null ? this.currentIndexingModel.master : this.currentIndexingModel.id;
             formatdatas['chrono'] = true;
             formatdatas['encodedFile'] = this.appDocumentViewer.getFile().content;
             formatdatas['format'] = this.appDocumentViewer.getFile().format;
-- 
GitLab