Bug Report: Assign Course - Parents seeing other students

  • Ron Wells
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
13 years 11 months ago #1 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

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #2 by Antonio Durán
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:
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
  • Premium Member
More
13 years 11 months ago #3 by Ron Wells
That did it - fixed.

Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #4 by Antonio Durán
Thnaks for the feedback and for your contribution!

Please Log in or Create an account to join the conversation.