]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
fixed error in manage entry
authorBanana <mail@bananas-playground.net>
Fri, 19 Apr 2024 19:39:23 +0000 (21:39 +0200)
committerBanana <mail@bananas-playground.net>
Fri, 19 Apr 2024 19:39:23 +0000 (21:39 +0200)
Signed-off-by: Banana <mail@bananas-playground.net>
webclient/view/compact/manageentry/manageentry.html
webclient/view/default/manageentry/field-lookupmultiple.html

index 7127f02e09deaffa3dc47193f8350c0c2aaa5cb5..0b8582a651bcbfce486cec115483bdfd180e87a4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 if(!empty($TemplateData['editFields'])) {
        $_entry = '';
-       if(!empty($TemplateData['editData'])) {
+       if(isset($TemplateData['editData']['id'])) {
                $_entry = $TemplateData['editData']['id'];
 ?>
                <h3 class="uk-h3"><?php echo $I18n->t('manageentry.updateentry'); ?> <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
index 848d27720d8cbd70bead482f6cac98ffe50494a8..a0697f3d6c9f81780c88140be27bbc39029cc015 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 $existingFieldValue = array();
-if(isset($TemplateData['editData'][$field['identifier']])) {
+if(!empty($TemplateData['editData'][$field['identifier']])) {
        $existingFieldValue = $TemplateData['editData'][$field['identifier']];
 }
 ?>