Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Organisation pagination

Hello.
Pagination link in org directory targets to users directory, while org is needed.
There is a bug in include/staff/templates/users.tmpl.php line 36:
$pageNav->setURL('users.php',$qstr.'&sort='.urlencode($_REQUEST['sort']).'&order='.urlencode($_REQUEST['order']));

Line should looks like this for correct pagination:
$pageNav->setURL('orgs.php?id=',$org->getId(),$qstr.'&sort='.urlencode($_REQUEST['sort']).'&order='.urlencode($_REQUEST['order']));

Comments

  • edited October 2014

    Dear SavRog,

    I found that the issue still exists in v1.9.4-rc4, and follow your provided information to change the code.

    Thanks a lot.

    Best Regards,
    Edward


  • I've forwarded this information to the devs.
  • edited March 2015

    Dear ntozier,

    The issue still exists in v1.9.6 with include/staff/templates/users.tmpl.php line 39:
    $pageNav->setURL('users.php', $qs);

    The correct code should be:
    $pageNav->setURL('orgs.php?id=',$org->getId(), $qs);

Sign In or Register to comment.