ridhiiwildan / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Filter not working for active|inactive users #278

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.on users.php
2.filter by Active or Inactive 
3.click Filter

What is the expected output? What do you see instead?
Selecting active - only active users
Selecting inactive - only inactive users

It's not working I see users from all status in both cases

What version of the product are you using? On what operating system?
r412

Please provide any additional information below.
The same status filter on client and on file page is working ok

Original issue reported on code.google.com by access_c...@hotmail.com on 1 May 2013 at 11:58

GoogleCodeExporter commented 8 years ago
In users.php, line: 173, replace:

    /** Add the status filter */    
    if(isset($_POST['role']) && $_POST['role'] != 'all') {
        $role_filter = $_POST['role'];
        $cq .= " AND level='$role_filter'";
        $no_results_error = 'filter';
    }

By:

    /** Add the role filter */  
    if(isset($_POST['role']) && $_POST['role'] != 'all') {
        $role_filter = $_POST['role'];
        $cq .= " AND level='$role_filter'";
        $no_results_error = 'filter';
    }

    /** Add the status filter */    
    if(isset($_POST['status']) && $_POST['status'] != 'all') {
        $status_filter = $_POST['status'];
        $cq .= " AND active='$status_filter'";
        $no_results_error = 'filter';
    }

Original comment by j.grest...@gmail.com on 5 May 2013 at 12:50

GoogleCodeExporter commented 8 years ago
Applied on r432. Thank you!

Original comment by i...@subwaydesign.com.ar on 19 Oct 2013 at 2:44