Commit 9bd91043 authored by ZeHiro's avatar ZeHiro
Browse files

Fill customLabel when manually creating an operation. Fixes #496.

parent c7f091e2
Pipeline #10441 passed with stage
in 5 minutes and 50 seconds
...@@ -150,6 +150,7 @@ export async function create(req, res) { ...@@ -150,6 +150,7 @@ export async function create(req, res) {
} }
// We fill the missing fields // We fill the missing fields
operation.raw = operation.title; operation.raw = operation.title;
operation.customLabel = operation.title;
operation.dateImport = moment().format('YYYY-MM-DDTHH:mm:ss.000Z'); operation.dateImport = moment().format('YYYY-MM-DDTHH:mm:ss.000Z');
operation.createdByUser = true; operation.createdByUser = true;
let op = await Operation.create(operation); let op = await Operation.create(operation);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment