]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
number save fix. adding link to collection in headline. updated todo
authorBanana <mail@bananas-playground.net>
Sat, 2 Jan 2021 21:34:28 +0000 (22:34 +0100)
committerBanana <mail@bananas-playground.net>
Sat, 2 Jan 2021 21:34:28 +0000 (22:34 +0100)
TODO
documentation/requirements.txt
webclient/lib/manageentry.class.php
webclient/view/default/manageentry/manageentry.html

diff --git a/TODO b/TODO
index 9f9887f073a84f39d884c54e35913164866c4d59..e602a65d3659e40cd34a44be34c4ba82094c44fb 100644 (file)
--- a/TODO
+++ b/TODO
@@ -8,3 +8,5 @@
 * sort by filter for collection display
 * responsive and breakpoints
 * tag management. Edit, update and unused ones.
+* imdb collector. Number storage -> runtime
+* clickable image in card view
index 91dd23217ecce8d94fdcfdf176a30dbb4cab7f4a..db2e14ff5f94d7195fc9141766a27530178bb4ef 100644 (file)
@@ -1,4 +1,4 @@
 * A Webserver (tested on Apache 2.4)
-* PHP 7+ with mysqli, mbstring
+* PHP 7+ with mysqli, mbstring, curl
 * MySQL 8+ / MariaDB 10.2
 * At least 20MB storage WITHOUT images
index ad95a65096b1109bed07678fed70f4eae3e32258..fc82ff8e9c6044680d03f350c8c181917f1bfe0f 100644 (file)
@@ -577,7 +577,11 @@ class Manageentry {
         * @return mixed
         */
        private function _saveField_number($data, $queryData) {
-               $queryData['init'][] = "`".$data['identifier']."` = ".$this->_DB->real_escape_string($data['valueToSave'])."";
+               // make sure there is something (int) to save
+               if(empty($data['valueToSave'])) {
+                               $data['valueToSave'] = 0;
+               }
+               $queryData['init'][] = "`".$data['identifier']."` = '".$this->_DB->real_escape_string($data['valueToSave'])."'";
                return $queryData;
        }
 
index 96fc69814c3f03965ecc961e093b66afb0982f83..5cecbd48e42f60cceb0ca517bb759c01d1c7b4c9 100644 (file)
@@ -4,10 +4,10 @@ if(!empty($TemplateData['editFields'])) {
        if(!empty($TemplateData['editData'])) {
                $_entry = $TemplateData['editData']['id'];
 ?>
-               <h3 class="uk-h3">Update an entry in: <?php echo $TemplateData['loadedCollection']['name']; ?></h3>
+               <h3 class="uk-h3">Update an entry in: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
                <p><a href="index.php?p=entry&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>&id=<?php echo $_entry; ?>">View entry</a></p>
 <?php } else { ?>
-               <h3 class="uk-h3">Add an entry to: <?php echo $TemplateData['loadedCollection']['name']; ?></h3>
+               <h3 class="uk-h3">Add an entry to: <a href="index.php?p=collections&collection=<?php echo $TemplateData['loadedCollection']['id']; ?>"><?php echo $TemplateData['loadedCollection']['name']; ?></a></h3>
 <?php } ?>
 <div class="uk-grid-small uk-grid-row-small" uk-grid>
        <div class="uk-width-2-3">