Insert name of file as the document title when uploading

This commit is contained in:
2025-11-19 13:33:51 +01:00
parent e1b91ebbfd
commit 7eb895c0e1
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
kind: Fixed
body: Insert name of file as the document title when uploading
time: 2025-11-19T13:33:24.778116633+01:00
custom:
Issue: ""
SchemaChange: No schema change

View File

@@ -293,11 +293,11 @@ function onInputDocumentTitle(event) {
}); });
} }
function addDocument({ stored_object, stored_object_version }) { function addDocument({ stored_object, stored_object_version, file_name }) {
let document = { let document = {
type: "accompanying_period_work_evaluation_document", type: "accompanying_period_work_evaluation_document",
storedObject: stored_object, storedObject: stored_object,
title: "Nouveau document", title: file_name,
}; };
store.commit("addDocument", { store.commit("addDocument", {
key: props.evaluation.key, key: props.evaluation.key,