[#2579] Remove no-op
(sanitize_sql_for_order does not do anything when its argument is a string)
This commit is contained in:
parent
d2362c29ed
commit
3bb6fd2d47
2 changed files with 1 additions and 5 deletions
|
@ -229,10 +229,6 @@ class Dossier < ApplicationRecord
|
||||||
DossierFieldService.get_value(self, table, column)
|
DossierFieldService.get_value(self, table, column)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.sanitize_for_order(order)
|
|
||||||
sanitize_sql_for_order(order)
|
|
||||||
end
|
|
||||||
|
|
||||||
def owner_name
|
def owner_name
|
||||||
if etablissement.present?
|
if etablissement.present?
|
||||||
etablissement.entreprise_raison_sociale
|
etablissement.entreprise_raison_sociale
|
||||||
|
|
|
@ -131,7 +131,7 @@ class DossierFieldService
|
||||||
end
|
end
|
||||||
|
|
||||||
if sorted_ids.nil?
|
if sorted_ids.nil?
|
||||||
sorted_ids = dossiers.includes(includes).where(where).order(Dossier.sanitize_for_order(order)).pluck(:id)
|
sorted_ids = dossiers.includes(includes).where(where).order(order).pluck(:id)
|
||||||
end
|
end
|
||||||
|
|
||||||
sorted_ids
|
sorted_ids
|
||||||
|
|
Loading…
Reference in a new issue