From d6cb9c6258c52bf3874bab2ceec97b90591032d1 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 7 Dec 2019 21:14:08 +0100 Subject: Questions: Moved user tests to user and fixed attribute names, added @covers --- includes/pages/user_questions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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.')); -- cgit v1.2.3-54-g00ecf