Project

General

Profile

Bug #2342

Assesments bug - Certificate does not work in 1.8.7.1

Added by Julio Montoya over 8 years ago. Updated about 8 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
-
Target version:
Start date:
24/11/2010
Due date:
% Done:

100%

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

Description

I test it like an admin I can create Assessment, but when login as a teacher I can't create new items. So certificate can't be created...

I found that this happens because of the api_get_setting('drhCourseManagerRights') variable that is set to false .. look at the main/inc/local.inc.php


Files

evalbug.png (19.1 KB) evalbug.png Yannick Warnier, 21/04/2011 22:21

Related issues

Related to Chamilo LMS - Bug #2295: Certificates generation brokenBug resolved19/11/2010

Actions
Related to Chamilo LMS - Bug #3296: Gradebook charts are counter-intuitiveBug resolved22/04/2011

Actions

Associated revisions

Revision f7f581f0 (diff)
Added by Yannick Warnier about 8 years ago

Fixed bug by which certificates were not always showing the right score although the students did succeed to the evaluation tests (fixes #2342)

Revision de538aff (diff)
Added by Yannick Warnier about 8 years ago

Fixed bug by which certificates were not always showing the right score although the students did succeed to the evaluation tests (fixes #2342)

History

#1

Updated by Julio Montoya over 8 years ago

the api_get_setting('drhCourseManagerRights') does not exists but that's not the reason why it fails.

Ok I got it. The script fails because I added a student as a teacher in my course so my user status is = 5. In the local.inc.php file the variable is set to $_SESSION['allowedCreateCourse'] false because it check also if my status = 1.

Anyway, I don't think this is the problem you have?

I also test it in http://campus.chamilo.org and it's working thing.

You can test it with the user alumno2:alumno2

Course http://campus.chamilo.org/courses/TESTWIKI

#2

Updated by Yannick Warnier over 8 years ago

  • Target version set to 1.8.8 beta
#3

Updated by Julio Montoya about 8 years ago

  • Status changed from New to Needs more info
  • Assignee set to Yannick Warnier
#4

Updated by Yannick Warnier about 8 years ago

How did you "add a student as a teacher"? Did you add him as a student and then changed him to a "profesor" in the users tool edition page? This does not really set him as a teacher, it only sets him as a "tutor" (we need to change that label)

#5

Updated by Yannick Warnier about 8 years ago

OK, I can still get this bug.

  • A fresh chamilo 1.8.8 dev install
  • I connect as admin, create a course named AAA
  • I create an exercise with one question (max points: 10)
  • I create an evaluation with the only exercise, and a weight of 10 for the exercise (although the weight doesn't really matter here)
  • I register a new teacher to the course (mmosquera)
  • I enable a certificate document for the evaluation in course AAA
  • I register a new student to the course (mhalles)
  • I login as mhalles
  • I go to the only exercise of course AAA and pass it with flaming figures (10/10 or 100%)
  • I check my results: they say I have 100%. Good.
  • I enter evaluation and I see the following screen:

When I look at the flat view with the teacher, it also says mhalles has 0%, so there appears to be some kind of bug preventing the evaluation to link to the exercises results!

#6

Updated by Yannick Warnier about 8 years ago

Apparently the bug happens only because of taking two times the test: only the last test result is taken into account.
This wouldn't be a problem if the student, when looking at the certificate screen, didn't have a link to the exercise, which gives him a real wish to click.

The problem is this: when looking at the exercises results screen, only one attempt appears, the one that is completed and has a score 100%. On the opposite, in the gradebook, the last attempt is taken (even if incomplete). This is not right. It should be the same query.

#7

Updated by Yannick Warnier about 8 years ago

OK, I apparently managed to fix it (http://code.google.com/p/chamilo/source/detail?r=f06a065f3a5ccd8f568f96e569c89b86ebdeb391&repo=classic)

On one side, I thought it was due to not using the same scale to compare the user score to the minimum certification score. For example, comparing 28/30 to 80/100 was just comparing 28 to 80, so I have made a series of changes to use a scale of 100 for the user score. In the end, I realized that this was not correct, as the minimum certification score is not a percentage but a fixed value, that must be adapted by the teacher to match the maximum score that a student can reach, so I have commented these changes (but left them there, I think they're important).
In any case, there was a wrong cast to integer (int()$item_value) that was cutting the score down and dangerously changing the results for some students.

On another side, there was a real problem with the exercises results taken into account as they didn't match the reports in the exercises tool (they took into account only the last attempt, even if incomplete).

There are still a few problems with the generation of charts, but I'm adding this into another task (#3296) for 1.8.8 stable.

#8

Updated by Yannick Warnier about 8 years ago

  • Status changed from Assigned to Bug resolved
  • % Done changed from 0 to 100
#9

Updated by Yannick Warnier about 8 years ago

Forgot commit http://code.google.com/p/chamilo/source/detail?r=b4c5b0b529843e0bafa1a9cc1c0e9fa685bc05d0&repo=classic (lifted by the emotion, I forgot to commit one directory)

Also available in: Atom PDF