I've been messing around with pagination the last couple of days and found some bugs. To confirm that it wasn't something I have creted myself, I've overwritten all files in com_fabrik and the bug is still there.
The problem is: When using a tableview in a module, the pagination does not work. However it does work if I'm on a page with a tableview in mainbody(component). But if I try use paging in my module while also looking at a table in mainbody(component) the paging in the module also affects the paging in the component.
Module and component are displaying 2 different tables, but are using data from the same database table.
You can see the problem in action here: d-form.dk/dev/index.php?option=com_fabrik&Itemid=12
And the pagination failure when not looking at a table in mainbody(component) here: d-form.dk/dev/index.php?option=com_content&task=view&id=3&Itemid=3
I'm using the latest SVN trunk from today
................
Altso I found a bug in the mod_fabrik_table.php
a " ' " should be removed in line 35/36. Change:
require_once( "'components/com_fabrik/views/form/view.html.php" );
require_once( "'components/com_fabrik/views/table/view.html.php" );
to this:
require_once( "components/com_fabrik/views/form/view.html.php" );
require_once( "components/com_fabrik/views/table/view.html.php" );
The problem is: When using a tableview in a module, the pagination does not work. However it does work if I'm on a page with a tableview in mainbody(component). But if I try use paging in my module while also looking at a table in mainbody(component) the paging in the module also affects the paging in the component.
Module and component are displaying 2 different tables, but are using data from the same database table.
You can see the problem in action here: d-form.dk/dev/index.php?option=com_fabrik&Itemid=12
And the pagination failure when not looking at a table in mainbody(component) here: d-form.dk/dev/index.php?option=com_content&task=view&id=3&Itemid=3
I'm using the latest SVN trunk from today
................
Altso I found a bug in the mod_fabrik_table.php
a " ' " should be removed in line 35/36. Change:
require_once( "'components/com_fabrik/views/form/view.html.php" );
require_once( "'components/com_fabrik/views/table/view.html.php" );
to this:
require_once( "components/com_fabrik/views/form/view.html.php" );
require_once( "components/com_fabrik/views/table/view.html.php" );