Open sasha-id opened 5 years ago
Hi!
Then this regex should include all of database-specific identifier's quotes (like "
for postgresql and others, backticks for some mysql, etc) and optional schema name?
For quick fix you can clearly specify sorting fields on smart_listing_create
:
sort_attributes: [
[:column, 'join_table.column']
],
This change in version 1.2.3 breaks implicit sorting by join tables aka
join_table.column
. I guess the change was made to avoid SQL injections, but simple regex filter will work as well.smart_listing/lib/smart_listing.rb