From: ArthurHoaro Date: Tue, 19 Jan 2021 10:48:38 +0000 (+0100) Subject: Merge pull request #1689 from ArthurHoaro/fix/bulk-add-html-label X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ffa39719a17982e6a6cac9bc3f758aa12fa69973;hp=31c4be2b60b3cf5b44fab7abd4ef06e2c3fe8c7c;p=github%2Fshaarli%2FShaarli.git Merge pull request #1689 from ArthurHoaro/fix/bulk-add-html-label Fix: bulk add - use unique HTML ID --- diff --git a/tpl/default/editlink.batch.html b/tpl/default/editlink.batch.html index b1f8e5bd..973a5ccc 100644 --- a/tpl/default/editlink.batch.html +++ b/tpl/default/editlink.batch.html @@ -20,6 +20,7 @@ {loop="$links"} + {$batchId=$key} {include="editlink"} {/loop} diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 83e541fd..a5828c75 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -1,3 +1,4 @@ +{$batchId=isset($batchId) ? $batchId : ''} {if="empty($batch_mode)"} @@ -10,7 +11,7 @@ {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore} {function="extract($value) ? '' : ''"} {/if} -