Project

General

Profile

Bug #4228

Bugs when copying questions from one course to another

Added by Yannick Warnier over 7 years ago. Updated over 7 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
19/01/2012
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

When I copy a question from one course to another in 1.8.8.4, I get things wrong: the questions does not copy, or it is copied but replaces one that was there, etc.


Files

question_pool.php (30.2 KB) question_pool.php Yoselyn Castillo, 25/05/2012 03:18

Associated revisions

Revision caa78d51 (diff)
Added by Yannick Warnier over 7 years ago

Fixed bugs in XLS imports of questions - refs #4228

Revision 7a5bbe9e (diff)
Added by Julio Montoya over 7 years ago

Fixes bug: "The questions are added to the first exercise, although I never selected that exercise as a destination" see #4228

Revision 38566467 (diff)
Added by Julio Montoya over 7 years ago

Fixing lang var, minor UI changes see #4228

History

#1

Updated by Julio Montoya over 7 years ago

  • Status changed from New to Needs more info
  • % Done changed from 0 to 10

Did you mean using the course backup when copying exercises?

main/coursecopy/copy_course.php?cidReq=XXX&id_session=0&gidReq=0

#2

Updated by Yannick Warnier over 7 years ago

  • Target version changed from 1.9 Stable to 1.9 Beta
#3

Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Assigned
  • Assignee set to Julio Montoya

No, I was talking about the copy from inside the questions database, in the exercises tool. I think it has been improved in 1.9 already.

So:

Apart from that, it all seems to be fixed.

#4

Updated by Yannick Warnier over 7 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo
#5

Updated by Yoselyn Castillo over 7 years ago

Please, upload this file in order to see whether that warning disappears. I have proved in my server and it works fine.

#6

Updated by Julio Montoya over 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yoselyn Castillo

patch added

#7

Updated by Yoselyn Castillo over 7 years ago

  • Assignee changed from Yoselyn Castillo to Yannick Warnier
  • % Done changed from 10 to 90

Fixed

#8

Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Yannick Warnier to Yoselyn Castillo
  • % Done changed from 90 to 50
  • create a course selecting the "Create with example content"
  • go to the exercise tool of the course
  • click the "Excel import" button
  • download the excel
  • upload the excel
  • First bug: the questions are added to the first exercise, although I never selected that exercise as a destination (it should have imported the questions inside the questions pool, that's all)
  • click on the exercise tool in the breadcrumb (to come back to the list of exercises)
  • click the pencil to edit the first exercise
  • Second bug:
    Fatal error: Cannot redeclare class multipleanswercombination in /var/www/chamilo/main/exercice/multiple_answer_combination.class.php on line 24 Call Stack: 0.0011 862184 1. {main}() /var/www/chamilo/main/exercice/admin.php:0 0.3843 12627768 2. require('/var/www/chamilo/main/exercice/question_list_admin.inc.php') /var/www/chamilo/main/exercice/admin.php:527 0.3876 12635080 3. Question::display_type_menu() /var/www/chamilo/main/exercice/question_list_admin.inc.php:138 0.3923 13118032 4. require_once('/var/www/chamilo/main/exercice/multiple_answer_combination.class.php') /var/www/chamilo/main/exercice/question.class.php:1284
  • click back on the breadcrumb to get back to the exercises list
  • click on "Questions database"
  • Third bug: in Spanish, instead of saying "Ninguna categoría en particular", it says "No hay categoría" (which is very different given I had created two categories which appear in the list below, invalidating the "There's no category"). I think the confusion comes because in English "No category" means "There is no category" but also means "No category selected". In Spanish, however, it always says "There's no category".

I cannot test the rest because of the redefine error.

#9

Updated by Yannick Warnier over 7 years ago

I fixed the second bug and can confirm that the moving and importing from the question pool works well. Please fix bugs 1 and 3 for the list above. The language variable for "No category" should be $All (this variable already exists), like in the select boxes below.

Bug 1 should be fixed by importing the questions as orphans in the question pool.

#10

Updated by Yannick Warnier over 7 years ago

  • Assignee changed from Yoselyn Castillo to Julio Montoya
#11

Updated by Julio Montoya over 7 years ago

No c_id found in those functions

#12

Updated by Julio Montoya over 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier
  • % Done changed from 50 to 80

First bug fixed, in fact if you look at the xls file, you add one exercise with their questions, not orphan questions (as far as I know)

#13

Updated by Julio Montoya over 7 years ago

Adding new lang var "NoCategorySelected"

#14

Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Bug resolved
  • Assignee changed from Yannick Warnier to Julio Montoya
  • % Done changed from 80 to 100

OK, good enough for beta.

Also available in: Atom PDF