Checking in a document updates the document and allows others to check out the document.

{assign var=iDocumentId value=$context->oDocument->getId()}

If you do not intend to edit the document, and you do not wish to prevent others from changing the document, you should cancel this checkout.

Checkin {foreach from=$checkin_fields item=oWidget } {$oWidget->render()} {/foreach}