diff --git a/lib/kaffy/resource_query.ex b/lib/kaffy/resource_query.ex index a6ce106c..b464789b 100644 --- a/lib/kaffy/resource_query.ex +++ b/lib/kaffy/resource_query.ex @@ -177,7 +177,7 @@ defmodule Kaffy.ResourceQuery do term_type == :string do term = "%#{term}%" - from([..., r] in current_query, + from(r in current_query, or_where: ilike(type(field(r, ^f), :string), ^term) ) else @@ -185,7 +185,7 @@ defmodule Kaffy.ResourceQuery do term_type == :decimal do current_query else - from([..., r] in current_query, + from(r in current_query, or_where: field(r, ^f) == ^term ) end diff --git a/lib/kaffy_web/templates/home/_chart.html.eex b/lib/kaffy_web/templates/home/_chart.html.eex index dabbaf67..50aa2c23 100644 --- a/lib/kaffy_web/templates/home/_chart.html.eex +++ b/lib/kaffy_web/templates/home/_chart.html.eex @@ -9,9 +9,9 @@

<%= @widget.title %>

- <%#
%> + <% #
%> - <%#
%> + <% #
%>