Project

General

Profile

Bug #3912

Exercice generated with Camilo doesnt work in LP

Added by Olivier CORRE almost 8 years ago. Updated about 7 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
23/09/2011
Due date:
% Done:

100%

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

Description

"Start test" button appears in gray. Test can't be started by users. Only works in LP for administrators and teachers.


Files

History

#1

Updated by Olivier CORRE almost 8 years ago

If that can help, it seems all exercices made with a previous version of Chamilo dont work. i suppose that concers stuff made prior to 1.8.8.2.

#2

Updated by Olivier CORRE almost 8 years ago

More info : stuff made in 1.8.7.x and imported in both 1.8.8.2 and 1.8.8.4 doesnt work.

#3

Updated by Julio Montoya almost 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Julio Montoya

I found the bug and I fixed it, I will post the commit here

#4

Updated by Yannick Warnier almost 8 years ago

Missing the commit that you were going to send...

#5

Updated by Julio Montoya almost 8 years ago

  • Status changed from Assigned to Needs more info
  • Assignee deleted (Julio Montoya)
  • % Done changed from 0 to 50

So to fix that bug:

1. Adding parameters to the is_visible() function in /main/exercice/overview.php

http://code.google.com/p/chamilo/source/diff?spec=svn.classic.ecb421dce8288bd48260b026e63f1296952aeec0&repo=classic&r=ecb421dce8288bd48260b026e63f1296952aeec0&format=side&path=/main/exercice/overview.php

2. In exercice/exercise.class.php function is_visible()

Replace get_attempt_count() to get_attempt_count_not_finished()

3. Add the new function "get_attempt_count_not_finished" in the main/inc/lib/events.lib.inc.php

http://code.google.com/p/chamilo/source/browse/main/inc/lib/events.lib.inc.php?repo=classic#760

4. Also take in account this fix:

http://code.google.com/p/chamilo/source/detail?r=73bb139c2a887c803dcf9a15b64511affd86d7d3&repo=classic&path=/main/exercice/overview.php

Do not copy or paste the exercise folder from the current mercurial repository because we're continuing doing changes ...

Hope that helps

#6

Updated by Olivier CORRE almost 8 years ago

Easy work around for those in need of a quick fix:
Always leave exercices visible in the exercices module. Module itself can be invisible. Invisible exercices will appear unaccessible to users in learnpath.

#7

Updated by Olivier CORRE over 7 years ago

Tried to apply this fix. Doesn't seem to work for me on a fresh 1.8.8.4.

#8

Updated by Olivier CORRE over 7 years ago

Can i get confirmation that this can t be applied on 1.8.8.4?

#9

Updated by Yannick Warnier over 7 years ago

  • Target version set to 1.9 Beta
#10

Updated by Yannick Warnier about 7 years ago

  • Status changed from Needs more info to Bug resolved
  • Assignee set to Julio Montoya
  • % Done changed from 50 to 100

In order to apply the first fix in comment#5 by Julio, you also need a patch to the is_visible() function. Considering the 1.9 is very close now, I'll just close this bug.

Also available in: Atom PDF