Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3740

Block online user map shows deleted users locations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.2.2
    • Block: Online user map
    • None
    • MOODLE_22_STABLE

      The online users map is showing locations of deleted users.

      Steps to reproduce :
      1. create new user with new location (let's say somewhere in Myanmar)
      2. run cron job to update user location
      3. go to page where online user map is shown and see the mark in Myanmar
      4. Delete the new user from Myanmar
      5. run cron job to update user location
      6. go to page where online user map is shown and you still see a mark in Myanmar

      workaround that also fixes users who never bothered to login : change line 38 AND 50 of getusers.php

      getusers.php

      --$where = "WHERE u.lastaccess <= $timefrom
      ++$where = "WHERE 0 < u.lastaccess <= $timefrom

            aborrow Anthony Borrow
            rdebleu Renaat Debleu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.