]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
Fixed: #22
authorBanana <mail@bananas-playground.net>
Mon, 9 Oct 2023 13:15:25 +0000 (15:15 +0200)
committerBanana <mail@bananas-playground.net>
Mon, 9 Oct 2023 13:15:25 +0000 (15:15 +0200)
CHANGELOG
webclient/view/98/manageentry/field-upload_multiple.html

index 9acfe285ad3d006df6e1ff9bce4e9f6f5be04510..45609842ab6af5bf0401d9a96204a293a49008ff 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -3,6 +3,7 @@
     * Licence change to GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
     * Cleanups
     * Fixed: #21
+    * Fixed: #22
 
 1.5 - Sacred Passage 2023-05-01
     * Added google books parser. See upgrade file for more infos.
index 0d1423a94e046a974beb12dfbb9bd53f725222c9..0f05420b510de6b1886ff065592a47a2ea2a3d17 100644 (file)
@@ -6,17 +6,19 @@
 
        <?php
        if(isset($TemplateData['editData']) && !empty($TemplateData['editData'][$field['identifier']])) {
+               $_i = 1;
                foreach($TemplateData['editData'][$field['identifier']] as $e) {
        ?>
                <a target="_blank" href="<?php echo $TemplateData['storagePath'].'/'.$e; ?>"><?php echo $e; ?></a>
                <input type="checkbox" value="<?php echo $e; ?>"
                                name="fdata[<?php echo $field['identifier']; ?>_delete][]"
                                title="Delete"
-                               id="<?php echo $field['identifier']; ?>_delete"
+                               id="<?php echo $field['identifier'].$_i; ?>_delete"
                />
-               <label for="<?php echo $field['identifier']; ?>_delete">Delete</label>
+               <label for="<?php echo $field['identifier'].$_i; ?>_delete">Delete</label>
                <br>
        <?php
+               $_i++;
                }
        }
        ?>