diff --git a/app/Http/Controllers/QuestionBankController.php b/app/Http/Controllers/QuestionBankController.php index ed324eae0..891b23776 100644 --- a/app/Http/Controllers/QuestionBankController.php +++ b/app/Http/Controllers/QuestionBankController.php @@ -406,9 +406,10 @@ 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', @@ -416,13 +417,13 @@ function getAll(Request $request, '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(); diff --git a/resources/js/components/questions/QuestionsGet.vue b/resources/js/components/questions/QuestionsGet.vue index 23692d7a6..e3589b095 100644 --- a/resources/js/components/questions/QuestionsGet.vue +++ b/resources/js/components/questions/QuestionsGet.vue @@ -46,7 +46,7 @@ aria-label="Copy question ID" @click.prevent="doCopy('questionID', 'The question ID has been copied to your clipboard.')" > - + @@ -60,14 +60,14 @@ aria-label="Copy Libretexts ID" @click.prevent="doCopy('libretextsID')" > - +
Technology URL: + />

- Please confirm that you would like to remove the question {{ questionToRemoveFromFavoritesFolder.title }} from - the My Favorites folder {{ questionToRemoveFromFavoritesFolder.my_favorites_folder_name }}. + Please confirm that you would like to remove the question {{ questionToRemoveFromFavoritesFolder.title }} from + the My Favorites folder {{ questionToRemoveFromFavoritesFolder.my_favorites_folder_name }}.