Keyword

K2 search does not work on backend with arabic characters

  • ‫نیما حبیب خدا‬‎
  • ‫نیما حبیب خدا‬‎'s Avatar Topic Author
  • Offline
  • New Member
More
8 years 1 month ago #156926 by ‫نیما حبیب خدا‬‎
K2 search does not work on backend with arabic characters was created by ‫نیما حبیب خدا‬‎
in new k2 release (2.7) when you search about something arabic characters on backend , nothing is happened ,
i solve this solution and want to share it here :
it is because of triming and replacing your character to null ,
go to this path : administrator/components/com_k2/models/items.php
in line 40 you will see this :
$search = trim(preg_replace('/[^a-zA-Z0-9\s\-_]/', '', $search));

comment this line , like this :
//$search = trim(preg_replace('/[^a-zA-Z0-9\s\-_]/', '', $search));
everything will be work good ,
i think k2 have to change regex .
thanks .

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 1 month ago #156995 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 search does not work on backend with arabic characters
Hello,

This has been corrected in the DEV version.
github.com/getk2/k2

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum