Pagenation class doesn't carry "action" to the generated links.

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Pagenation class doesn't carry "action" to the generated links.

Post by lemkepf »

In the file:
/ trunk / lib / classes / class.module.inc.php

On line:
2074
The CreatePagination function will not put the "action" into the generated links.

With this usage:

Code: Select all

echo $this->CreatePagination($id, "manage_user", "", $params['page'], $total_recs,
$num_per_batch);
Here is a fix:
line: 2074
FROM THIS:

Code: Select all

$link = '<a href="'.$goto.'?module='.$this->GetName().'&'.$id.'returnid='.$id.$returnid.'&'.$
id.'page=';
TO THIS:

Code: Select all

$link = '<a href="'.$goto.'?module='.$this->GetName().'&'.$id.'returnid='.$id.$returnid.'&'.$
id.'action=' . $action .'&'.$id.'page=';
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: Pagenation class doesn't carry "action" to the generated links.

Post by lemkepf »

This will be fixed in the next version.
Post Reply

Return to “Developers Discussion”