toed-counterclockwise

Author Topic: Group Tree view only displays first 20 - Fixed DIFF  (Read 1346 times)

mikemsd

  • wiki
  • **
  • Posts: 2
  • Karma: +0/-0
Group Tree view only displays first 20 - Fixed DIFF
« on: November 16, 2009, 11:54:04 pm »
The group tree view controlled by nav.cgi only displays the first 20 groups. This is due to the call made to the server to populate the group list is not specifying a limit. This is causing the groups to default to a limit of 20 per API specs. Set limit to API specification max of 255. This issues is present in NicToolClient 2.07

Affected file is: NicToolClient/htdocs/nav.cgi


Code: [Select]
--- nav.cgi.old 2009-11-17 00:44:55.000000000 -0600
+++ nav.cgi     2009-11-17 00:52:42.000000000 -0600
@@ -132,7 +132,7 @@ sub recurse_groups {
     my $expanded        = shift;

     my $data
-        = $nt_obj->get_group_subgroups( nt_group_id => $parent_group_id );
+        = $nt_obj->get_group_subgroups( nt_group_id => $parent_group_id, limit => 255 );
     return $nt_obj->display_error($data)
         if ( $data->{'error_code'} != '200' );

matt

  • Administrator
  • Wizard
  • *****
  • Posts: 535
  • Karma: +0/-0
    • Matt's Personal Site
Re: Group Tree view only displays first 20 - Fixed DIFF
« Reply #1 on: March 25, 2010, 03:40:26 pm »
added to NicTool 2.08