Skip to content

Commit

Permalink
Filter part 2 (type column, open-ended issue, removed the types from …
Browse files Browse the repository at this point in the history
…the filters)
  • Loading branch information
kreut committed Jun 27, 2024
1 parent 952c94e commit 44c606c
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 110 deletions.
9 changes: 5 additions & 4 deletions app/Http/Controllers/QuestionBankController.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,23 +406,24 @@ function getAll(Request $request,
->toArray();

$questions_info = DB::table('questions')
->join('formatted_question_types','questions.id','=','formatted_question_types.question_id')
->select(
'id AS question_id',
'id',
'questions.id AS question_id',
'questions.id',
DB::raw('CONCAT(library, "-", page_id) AS library_page_id'),
'library',
'page_id',
'title',
'description',
'author',
'technology',
'question_type',
'formatted_question_types.formatted_question_type AS question_type',
'qti_json',
'qti_json_type',
'h5p_type',
'technology_id',
'non_technology')
->whereIn('id', $question_ids)
->whereIn('questions.id', $question_ids)
->get();


Expand Down
Loading

0 comments on commit 44c606c

Please sign in to comment.