From 7ed01363431a45d0a2c7f181600f253beca60e70 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 29 Jun 2002 15:44:46 +0000 Subject: [PATCH] make the webdb_create update be called webdb_create_update. it breaks things otherwise. a fixme case I know.. --- source/mir/storage/Database.java | 13 +++++++++++-- templates-dist/admin/content.template | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/source/mir/storage/Database.java b/source/mir/storage/Database.java index 2e8f8932..79ac9ac4 100755 --- a/source/mir/storage/Database.java +++ b/source/mir/storage/Database.java @@ -27,10 +27,13 @@ import mir.misc.*; * Treiber, Host, User und Passwort, ueber den der Zugriff auf die * Datenbank erfolgt. * - * @version $Revision: 1.18 $ $Date: 2002/06/28 20:42:13 $ + * @version $Revision: 1.19 $ $Date: 2002/06/29 15:44:46 $ * @author $Author: mh $ * * $Log: Database.java,v $ + * Revision 1.19 2002/06/29 15:44:46 mh + * make the webdb_create update be called webdb_create_update. it breaks things otherwise. a fixme case I know.. + * * Revision 1.18 2002/06/28 20:42:13 mh * added necessary bits in templates and Database.java to make webdb_create modifiable. make the conversion from sql/Timestamp to String more robust * @@ -786,8 +789,14 @@ public class Database implements StorageObject { if (metadataFields.contains("webdb_lastchange")) { sql.append(",webdb_lastchange=NOW()"); } + // special case: the webdb_create requires the field in yyyy-mm-dd format + // so anything extra will be ignored. which breaks actual updating when a + // a change in date is not desired but the values hash has the correct and + // full "webdb_create" field and value in it. solution make it so the update + // must be called webdb_create_update. a hack I know.. hopefully + // we can replace this whole layer soon. -mh if (metadataFields.contains("webdb_create") && - theEntity.hasValueForField("webdb_create")) { + theEntity.hasValueForField("webdb_create_update")) { // TimeStamp stuff try { java.util.Date d = _dateFormatterIn.parse( diff --git a/templates-dist/admin/content.template b/templates-dist/admin/content.template index 904b69ab..52fee59a 100755 --- a/templates-dist/admin/content.template +++ b/templates-dist/admin/content.template @@ -68,7 +68,7 @@ p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} ${lang("content.create_date")}: - +
-- 2.11.0