Skip to content
Snippets Groups Projects
Commit 311b9af5 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12091 TIME 0:45 put attachments in signatory by default if it is a signed type

parent 2c8bf8de
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,11 @@ class AttachmentController ...@@ -57,6 +57,11 @@ class AttachmentController
'collId' => 'attachments_coll' 'collId' => 'attachments_coll'
]); ]);
$attachmentsTypes = AttachmentModel::getAttachmentsTypesByXML();
if ($attachmentsTypes[$body['type']]['sign']) {
AttachmentModel::setInSignatureBook(['id' => $id, 'inSignatureBook' => true]);
}
$customId = CoreConfigModel::getCustomId(); $customId = CoreConfigModel::getCustomId();
$customId = empty($customId) ? 'null' : $customId; $customId = empty($customId) ? 'null' : $customId;
exec("php src/app/convert/scripts/FullTextScript.php --customId {$customId} --resId {$id} --collId attachments_coll --userId {$GLOBALS['id']} > /dev/null &"); exec("php src/app/convert/scripts/FullTextScript.php --customId {$customId} --resId {$id} --collId attachments_coll --userId {$GLOBALS['id']} > /dev/null &");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment