mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Merge branch '108869472-objects_archive' into staging
This commit is contained in:
commit
c47613865a
3 changed files with 4 additions and 7 deletions
|
@ -49,7 +49,7 @@ class Admin::ContactVersionsController < AdminController
|
|||
end
|
||||
|
||||
def create_where_string(key, value)
|
||||
" AND object->>'#{key}' LIKE '%#{value}%'"
|
||||
" AND object->>'#{key}' ILIKE '%#{value}%'"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -9,12 +9,12 @@ class Admin::DomainVersionsController < AdminController
|
|||
search_params = params[:q].deep_dup
|
||||
|
||||
if search_params[:registrant].present?
|
||||
registrants = Contact.where("name like ?", "%#{search_params[:registrant].strip}%")
|
||||
registrants = Contact.where("name ilike ?", "%#{search_params[:registrant].strip}%")
|
||||
search_params.delete(:registrant)
|
||||
end
|
||||
|
||||
if search_params[:registrar].present?
|
||||
registrars = Registrar.where("name like ?", "%#{search_params[:registrar].strip}%")
|
||||
registrars = Registrar.where("name ilike ?", "%#{search_params[:registrar].strip}%")
|
||||
search_params.delete(:registrar)
|
||||
end
|
||||
|
||||
|
@ -63,7 +63,7 @@ class Admin::DomainVersionsController < AdminController
|
|||
end
|
||||
|
||||
def create_where_string(key, value)
|
||||
" AND object->>'#{key}' ~ '#{value}'"
|
||||
" AND object->>'#{key}' ~* '#{value}'"
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
%dl.dl-horizontal
|
||||
%dt= t(:name)
|
||||
%dd= link_to(domain.name, admin_domain_path(@version.item_id))
|
||||
%dt= t(:registered_at)
|
||||
%dd
|
||||
= l(domain.registered_at, format: :short)
|
||||
|
||||
%dt= t(:created)
|
||||
%dd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue