Project

General

Profile

Bug #7732

Learnpaths visibility issue as student (or student view)

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

Status:
Bug resolved
Priority:
Normal
Category:
Learning paths / Lecciones
Target version:
Start date:
08/06/2015
Due date:
% Done:

100%

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

Description

In the Chamilo 1.9.x branch:
  • Create 2 empty learnpaths in a course
  • Select * FROM c_item_property where c_id = x and tool = 'learnpath'; shows 2 rows (lastedit_type = 'LearnpathAdded' and visibility = 1)
  • Delete the second one
  • Select * FROM c_item_property where c_id = x and tool = 'learnpath'; shows 2 rows (the second one has lastedit_type = LearnpathDeleted and visibility = 2)
  • Create a new one
  • Select * FROM c_item_property where c_id = x and tool = 'learnpath'; shows 2 rows (the second one has lastedit_type = LearnpathAdded and visibility = 2!!!)
  • use the "Student view" button -> only one learnpath shows.

Somehow, the query to add a new learning path seems to be updating the c_item_property row instead of creating a new one, and also forgets to set visibility to 1.

Not tested on 1.10.x but I'm sure something similar will happen.

History

#1

Updated by Yannick Warnier over 4 years ago

This was reported as a by-product of BT#9981

#2

Updated by Julio Montoya over 4 years ago

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

In 1.10 it works fine. After creating the third new LP I have 3 items in c_item_property


+-----+------+------+-----------+----------------+---------------------+---------------------+-----+------------------+------------------+-------------+------------+------------+---------------+-------------+------------+
| iid | id   | c_id | tool      | insert_user_id | insert_date         | lastedit_date       | ref | lastedit_type    | lastedit_user_id | to_group_id | to_user_id | visibility | start_visible | end_visible | session_id |
+-----+------+------+-----------+----------------+---------------------+---------------------+-----+------------------+------------------+-------------+------------+------------+---------------+-------------+------------+
| 142 |  142 |    3 | learnpath |              1 | 2015-06-09 06:23:31 | 2015-06-09 06:23:31 |   4 | LearnpathAdded   |                1 |        NULL |       NULL |          1 | NULL          | NULL        |       NULL |
| 143 |  143 |    3 | learnpath |              1 | 2015-06-09 06:23:39 | 2015-06-09 06:25:16 |   5 | LearnpathDeleted |                1 |        NULL |       NULL |          2 | NULL          | NULL        |       NULL |
| 144 |  144 |    3 | learnpath |              1 | 2015-06-09 06:30:00 | 2015-06-09 06:30:00 |   6 | LearnpathAdded   |                1 |        NULL |       NULL |          1 | NULL          | NULL        |       NULL |
+-----+------+------+-----------+----------------+---------------------+---------------------+-----+------------------+------------------+-------------+------------+------------+---------------+-------------+------------+
3 rows in set (0,00 sec)

#3

Updated by Yannick Warnier over 4 years ago

  • Status changed from Needs more info to Bug resolved
  • % Done changed from 0 to 100

OK, great. Then this will still exist in 1.9.x but will be solved by moving to 1.10.0.

Also available in: Atom PDF