Jump to content

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

  • Please log in to reply
1 reply to this topic

#1 onica



  • Members
  • Pip
  • 6 posts

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 ...


#2 web-johnny


    grocery CRUD Author

  • Administrators
  • 1,099 posts
  • LocationLondon

Posted 19 November 2018 - 03:16 PM

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


Posted Image

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users