refine-rails 2.9.8 → 2.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '039df341fd264ac47f7b96bd75982670ec8de4c8c4ceb8b834531e32b0951719'
4
- data.tar.gz: 9e66ddc7e19e999393deaddba297aeda5cbb6ae34f60caa5b3b30cbd12ea87c6
3
+ metadata.gz: 446a8130188530cee2fb75c67578c600275c0a828fb2231196d3517f5f95a837
4
+ data.tar.gz: a5a22667df259ae68c2ce26c5e18dae49a02708342580e9569d26237d2632281
5
5
  SHA512:
6
- metadata.gz: 4a61c48ceab2212cf91edbff09763337f33b3202bb0a1c53a385f6aa1884e427e45d8140bcc3f13981c52d1190b532f2969b549090567440292a9183d49b89c9
7
- data.tar.gz: b30741654641737ed1d2137f471772a66ff1ee9d1206c5817eeab23a6a99093aee9e9364fb4e016d3e28bea7a253ae57071d381b3a5d2f1cb08e3d3ed9e16228
6
+ metadata.gz: abb49f9681a6fbd5079b1fe745bab2e993a59855092023d9b2ae7fd312f38d143701e9666400de69b4ef71b81f797e3e3fff616082029589971d0e2659b5b4f0
7
+ data.tar.gz: 78b5b26f113149a4ed8e1aff5063be84afa462a9aaf5091514ef96f8f81ed01c3a93e68c33f409179d026e7bf79fb8bc9173ca9fd6e4ca0790f88ea90fc3731e
@@ -2,6 +2,7 @@
2
2
  condition = @criterion.condition
3
3
  date_refinement_condition = condition.has_date_refinement? && condition.get_date_refinement_condition
4
4
  count_refinement_condition = condition.has_count_refinement? && condition.get_count_refinement_condition
5
+ condition_clause = @criterion.input.clause || condition.approved_clauses.first.id
5
6
 
6
7
  last_clause_select = if count_refinement_condition
7
8
  :count
@@ -23,7 +24,7 @@
23
24
 
24
25
 
25
26
  <%# Input Value %>
26
- <% unless ['st', 'nst'].include? @criterion.input.clause %>
27
+ <% unless ['st', 'nst'].include? condition_clause %>
27
28
  <%= render @criterion.input_partial, criterion: @criterion, form: form, input_fields: input_fields, form_id: form_id %>
28
29
  <% if last_clause_select == :criterion %>
29
30
  <div class="refine--separator"></div>
@@ -37,7 +38,7 @@
37
38
  @criterion.condition.approved_clauses,
38
39
  :id,
39
40
  :display,
40
- {},
41
+ {selected: condition_clause},
41
42
  class: "refine--select refine--clause-select",
42
43
  data: {action: "change->refine--criterion-form#refresh"},
43
44
  form: form_id
@@ -1,5 +1,5 @@
1
1
  module Refine
2
2
  module Rails
3
- VERSION = "2.9.8"
3
+ VERSION = "2.9.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refine-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.8
4
+ version: 2.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colleen Schnettler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-14 00:00:00.000000000 Z
12
+ date: 2024-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails