commit 39a1f231a392985fc7f62204a9592422b79b6c34
parent 39d02b8fd0c9b3178f99cc447d023747ecc82ff4
Author: Jan Dankert <devnull@localhost>
Date: Tue, 15 Jul 2014 00:07:53 +0200
Fix: Setzen des Erzeugungsdatums.
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/action/PageAction.class.php b/action/PageAction.class.php
@@ -306,6 +306,7 @@ class PageAction extends ObjectAction
if ( $this->hasRequestVar('creationTimestamp') && $this->currentUser->isAdmin )
$this->page->createDate = $this->getRequestVar('creationTimestamp',OR_FILTER_NUMBER);
+ $this->page->setCreationTimestamp();
}
else
{
diff --git a/model/Object.class.php b/model/Object.class.php
@@ -737,6 +737,7 @@ SQL
' create_date = {time} '.
' WHERE id={objectid}');
+ $sql->setInt ('objectid',$this->objectid );
$sql->setInt ('time' ,$this->createDate );
$db->query( $sql );