summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-12-07 21:14:08 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-07 21:29:11 +0100
commitd6cb9c6258c52bf3874bab2ceec97b90591032d1 (patch)
tree782b9c167230c20b652ad8fd39bb8b993ee1f857 /includes
parent8fc159f2872a661c83d2a0bd1f4f68f49c33ae8c (diff)
Questions: Moved user tests to user and fixed attribute names, added @covers
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/user_questions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_questions.php b/includes/pages/user_questions.php
index ab836c77..13f58b10 100644
--- a/includes/pages/user_questions.php
+++ b/includes/pages/user_questions.php
@@ -33,8 +33,8 @@ function user_questions()
$question = request()->get('question');
if (!empty($question) && $request->hasPostData('submit')) {
Question::create([
- 'enquirer_id' => $user->id,
- 'question' => $question,
+ 'user_id' => $user->id,
+ 'text' => $question,
]);
success(__('You question was saved.'));