possible CreatePagination bug

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
newclear

possible CreatePagination bug

Post by newclear »

Hello,
I think there is a problem in the links created by CreatePagination function.

Check this line from the http://svn.cmsmadesimple.org/svn/cmsmad ... sc.inc.php

Code: Select all

	$link = '<a href="'.$goto.'?module='.$modinstance->GetName().'&'.$id.'returnid='.$id.$returnid.'&'.$id.'action=' . $action .'&'.$id.'page=';
the generated link is simular to

http://localhost/cmsms/admin/moduleinte ... &m1_page=1

and click over this link should goes to view_cats action but it shows the defaultadmin action.
If the pagination is on defaultadmin the page links works.

The strange here is that $returnid is only equal to "m1_"
I am not sure but looks like a wrong generated link for me.

Is this $returnid required variable for modules in admin panel?

--
Svilen
Post Reply

Return to “Developers Discussion”