- Posts: 128
Bug Report: Assign Course - Parents seeing other students
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
Less
More
13 years 11 months ago #1
by Ron Wells
Bug Report: Assign Course - Parents seeing other students was created by Ron Wells
Bug issue: Parents seeing more than just their assigned students when assigning students to courses.
When looking at the menu item "assign courses", some students that are NOT assigned to the parent are showing on the option list. After looking at the database - what is likely happening is as follows:
a. Parent account with ID = u62_parent_id=62 is seeing all student accounts assigned to 62 PLUS
b. All students with a parent that whose ID also contains a "62" within the ID will show as well.
For Example:
Parent with ID of 62 will also see students with following params set in Joomla user table: u627_parent_id=627, u626_parent_id=626, etc.
I believe this was fixed for R0.5 but is somehow back...
Thanks for looking into.
Ron
When looking at the menu item "assign courses", some students that are NOT assigned to the parent are showing on the option list. After looking at the database - what is likely happening is as follows:
a. Parent account with ID = u62_parent_id=62 is seeing all student accounts assigned to 62 PLUS
b. All students with a parent that whose ID also contains a "62" within the ID will show as well.
For Example:
Parent with ID of 62 will also see students with following params set in Joomla user table: u627_parent_id=627, u626_parent_id=626, etc.
I believe this was fixed for R0.5 but is somehow back...
Thanks for looking into.
Ron
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
13 years 11 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Bug Report: Assign Course - Parents seeing other students
Hi Ron. Thanks for the bug report.
If you are using J2.5, I think you can fix this by changing line 72 in administrator/components/com_joomdle/helpers/parents.php.
Change:
By:
Please test and let us know if this works fine.
If you are using J2.5, I think you can fix this by changing line 72 in administrator/components/com_joomdle/helpers/parents.php.
Change:
Code:
" WHERE params LIKE '%parent_id\":\"$id%'";
By:
Code:
" WHERE params LIKE '%parent_id\":\"$id\"%'";
Please test and let us know if this works fine.
Please Log in or Create an account to join the conversation.
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 128
13 years 11 months ago #3
by Ron Wells
Replied by Ron Wells on topic Re: Bug Report: Assign Course - Parents seeing other students
That did it - fixed.
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
13 years 11 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Bug Report: Assign Course - Parents seeing other students
Thnaks for the feedback and for your contribution!
Please Log in or Create an account to join the conversation.