diff --git a/controllers/QuestsController.inc b/controllers/QuestsController.inc
index 9ba3bf62..a8dbdcb7 100644
--- a/controllers/QuestsController.inc
+++ b/controllers/QuestsController.inc
@@ -445,6 +445,7 @@
// TODO Validation
$name = $this->request->getPostParam('name');
$xps = $this->request->getPostParam('xps');
+ $entrytext = $this->request->getPostParam('entrytext');
$wrongtext = $this->request->getPostParam('wrongtext');
$task = $this->request->getPostParam('task');
@@ -483,6 +484,7 @@
$questgroups[$questgroupIndex]['id'],
$questtypes[$questtypeIndex]['id'],
$xps,
+ $entrytext,
$wrongtext,
$task
);
diff --git a/models/QuestsModel.inc b/models/QuestsModel.inc
index d38dba68..ff77498a 100644
--- a/models/QuestsModel.inc
+++ b/models/QuestsModel.inc
@@ -414,21 +414,22 @@
* @param int $questgroupId ID of Questgroup
* @param int $questtypeId ID of Questtype
* @param int $xps XPs for new Quest
+ * @param string $entrytext Entrytext for new Quest
* @param string $wrongtext Wrongtext for new Quest
* @param string $task Task for new Quest
* @return int ID of new Quest
*/
- public function createQuest($userId, $name, $questgroupId, $questtypeId, $xps, $wrongtext, $task)
+ public function createQuest($userId, $name, $questgroupId, $questtypeId, $xps, $entrytext, $wrongtext, $task)
{
$this->db->query(
'INSERT INTO quests '.
- '(created_user_id, questgroup_id, questtype_id, title, url, xps, wrong_text, task) '.
+ '(created_user_id, questgroup_id, questtype_id, title, url, xps, entry_text, wrong_text, task) '.
'VALUES '.
- '(?, ?, ?, ?, ?, ?, ?, ?)',
- 'iiississ',
+ '(?, ?, ?, ?, ?, ?, ?, ?, ?)',
+ 'iiississs',
$userId, $questgroupId, $questtypeId,
$name, \nre\core\Linker::createLinkParam($name),
- $xps, $wrongtext, $task
+ $xps, $entrytext, $wrongtext, $task
);
diff --git a/views/html/quests/create.tpl b/views/html/quests/create.tpl
index 3c05e6d9..31089ccb 100644
--- a/views/html/quests/create.tpl
+++ b/views/html/quests/create.tpl
@@ -25,6 +25,8 @@
+
+