Bugfix beim Sortieren von Einträgen

This commit is contained in:
Andreas Österreicher
2011-06-24 09:17:11 +00:00
parent 8b3908e722
commit 66ede7ed0a
2 changed files with 41 additions and 7 deletions
+3 -1
View File
@@ -520,6 +520,8 @@ if(!is_null($method))
$content->child_content_id = $_POST['child_content_id'];
$content->insertamum = date('Y-m-d');
$content->insertvon = $user;
$content->sort=$content->getMaxSort($content_id)+1;
if($content->addChild())
$message.='<span class="ok">Daten erfolgreich gespeichert</span>';
else
@@ -558,7 +560,7 @@ if(!is_null($method))
$contentchild_id = $_GET['contentchild_id'];
$content = new content();
if($content->SortUp($contentchild_id))
$message.='<span class="ok">Sortieren erfolgrecih</span>';
$message.='<span class="ok">Sortieren erfolgreich</span>';
else
$message.='<span class="error">'.$content->errormsg.'</span>';
}