Transfer the tmp hashes for the attachment handler when submitting
authorCyperghost <olaf_schmitz_1@t-online.de>
Mon, 19 Aug 2024 08:45:13 +0000 (10:45 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Mon, 19 Aug 2024 08:45:13 +0000 (10:45 +0200)
com.woltlab.wcf/templates/shared_wysiwygAttachmentFormField.tpl

index e0f4a6c536ddb9a4790e581f7b06cd93e831f865..5741a4b493a440cffcbe5ab2790ff8bab22c2df5 100644 (file)
                </dd>
        </dl>
 
+       {foreach from=$field->getAttachmentHandler()->getTmpHashes() item=tmpHash}
+               <input type="hidden" name="{$field->getPrefixedID()}_tmpHash[]" value="{$tmpHash}">
+       {/foreach}
+
        <script data-relocate="true">
                {jsphrase name='wcf.attachment.insert'}
                {jsphrase name='wcf.attachment.insertFull'}