⚠ 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

pagination not working if I use utf8_decode on $row->{$column->field_name} in list_tbody.php from bootstrap theme



onica
  • profile picture
  • Member

Posted 19 November 2018 - 11:44 AM

Hi, I have some fields that I save in database after I apply utf8_encode on them.

When I display them on grocey crud list with bootstrap theme, I apply utf8_decode, only the pagination stops working properly : ajax_list return nothing and the previous page remains displayed

This is the line of code I modified in list_tbody.php (bootstrap theme):

    echo $row->{$column->field_name} != '' ? utf8_decode($row->{$column->field_name}) : ' ' ;

If I remove utf8_decode, pagination works fine, but I need to do the decoding somehow ...
 

 


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

Posted 19 November 2018 - 15:16 PM

I am not sure if this is correct answer but I will leave it here :)

https://stackoverflow.com/a/32632498/2282575