⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

DataTables pagination bug - found fix



saulimus

saulimus
  • profile picture
  • Member

Posted 11 July 2012 - 09:27 AM

Hi!

I found a bug in GroceryCrud when using DataTables.
The bug makes it not possible to click 'Next' and shows the following line wrong:
Displaying 1 to [b]010[/b] of 23 items
The line above should obviously be "10" and not "010".

File: 'assets\grocery_crud\themes\datatables\views\list_template.php'
Line:
var default_per_page = '<?php echo $default_per_page;?>';
Cause: Datatables expects default_per_page to be a number and not a string

How to fix: Remove the single quotes :)
var default_per_page = <?php echo $default_per_page;?>;


You can check the bug out at:
http://www.grocerycr...yees_management

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 11 July 2012 - 21:45 PM

Thanks for that I just replaced it.

I liked your bug report.
1. Description of what you where expected
2. The problem
3. And the fix :)