]> 91.132.146.200 Git - bibliotheca-php.git/commitdiff
mariadb did not like this.
authorBanana <mail@bananas-playground.net>
Sat, 2 Jan 2021 20:25:07 +0000 (21:25 +0100)
committerBanana <mail@bananas-playground.net>
Sat, 2 Jan 2021 20:25:07 +0000 (21:25 +0100)
TODO
webclient/lib/managecollectionfields.class.php

diff --git a/TODO b/TODO
index 76ad32360e5136492c13e30c88006f08c5e5cef5..9f9887f073a84f39d884c54e35913164866c4d59 100644 (file)
--- a/TODO
+++ b/TODO
@@ -7,3 +7,4 @@
 * delete of a collection
 * sort by filter for collection display
 * responsive and breakpoints
+* tag management. Edit, update and unused ones.
index 4bb8615e0ece0dac1b8c01311d164ba831fa1ac5..4dfa5d9e9f18ead423df2ec62f744ad32516729e 100644 (file)
@@ -170,7 +170,7 @@ class ManageCollectionFields {
                                                $queryStr .= "($v,$k),";
                                        }
                                        $queryStr = trim($queryStr, ",");
-                                       $queryStr .= " AS newEntry(fid,s) ON DUPLICATE KEY UPDATE `sort`=s";
+                                       $queryStr .= " ON DUPLICATE KEY UPDATE `sort` = VALUES(`sort`)";
 
                                        if(QUERY_DEBUG) error_log("[QUERY] ".__METHOD__." query: ".var_export($queryStr,true));
                                        $q2 = $this->_DB->query($queryStr);