changeset 434:d948f1f12b23

Fix new slide creation.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2013 22:31:23 +0200
parents 5c85316adfad
children 7f950ab60be4
files admajax.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Thu Dec 05 22:31:07 2013 +0200
+++ b/admajax.php	Thu Dec 05 22:31:23 2013 +0200
@@ -619,8 +619,8 @@
         $sql = stPrepareSQL("INSERT INTO displaySlides (title) VALUES (%s)", "New slide");
         if (stExecSQLCond($sql, "Rotation list created.") !== false)
         {
-          $list_id = $db->lastInsertId();
-          echo stGetInfoRotationListEditFull("", TRUE, $list_id);
+          $slide_id = $db->lastInsertId();
+          echo stGetInfoDisplaySlideEdit("", TRUE, $slide_id);
         }
         break;