• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    'Login History' Report - problem with username filter is showing only 1 hostname

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    2
    668
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vlamke
      last edited by

      Server
      • FOG Version: 1.3.2 (SVN Revision: 6055)
      • OS: Arch Linux (64bits) Kernel: 4.8.13-1-ARCH
      Client
      • Service Version: 0.11.8
      • OS: Windows 10 Professional x64
      Description

      When I want to make a report via “Report Management” and then click on “Login History” for a specific user, its only using 1 hostname where the user has logged in (according to the MySQL database the user has 2 host where he had logged in).

      I found the lines that is causing this problem, because its only loading the hostname 1 time and after that its not loading the hostname agian.
      File information:

      • Filename: reportmanagementpage.class.php
      • Location: Webserver: lib/pages (Github: packages/web/lib/pages/reportmanagementpage.class.php)
      • Line: 1346 - 1349
      • Line script: if (!$Host->isValid()) {
        $Host = new Host($User->get(‘hostID’));
        }

      This line should be “$Host = new Host($User->get(‘hostID’));”, otherwhise it will load the hostname 1 time and will use the same hostname on the other lines, and its not loading the correct hostname for that line.

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Fixed for the working 1.3.3 branch.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        179

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project