avo 3.1.5 → 3.1.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42f73166d9da136fa68ddcf9e50383f0e521780a761cb9787a2ada8973807afe
4
- data.tar.gz: 3a075f020fbb65fd8c408826d80676586a78a7d7eed83d2f5600f8defe12a8b2
3
+ metadata.gz: 5e7897ff0048495cd2f6a1835226eb23f493c17bc867c873ea1862b204525ec1
4
+ data.tar.gz: 700e62f5c52c40071c7fe424794b998698195ed488f17025d16b8fcbee4c6ec7
5
5
  SHA512:
6
- metadata.gz: ce968eaeb738a01877c6ec5898660f2e62ce38a4c473074bb3cdac352f2f3ddc35427ca8e747d346c5dbc598b1a398420a0c4ec5ff741bcdc599fc895ee12a28
7
- data.tar.gz: cb65b98d9fd7f125ba974917449199b22569e4828dfd86c4cdfd365768896e34cffaf15c4d9d413b41a717ca419eb1ed588897ec97435c7a128b114187a4804d
6
+ metadata.gz: cbad7fafbf3eefb977bc4e92459f4c53dbff0148fcd2eedcb1c52b347c7a1fda6bef5cbb6da9b6d14e28adf520f093b65e5b54a1a8a5adca0733d446d44c03da
7
+ data.tar.gz: 10770171e285976021278a67aefbb8fbb281489c0d4a7d654282b01e5b59493657b55af7009fe7770e0f59e25d30a5879ee32e2878268140eaeb2b6e39dd9a55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.1.5)
4
+ avo (3.1.7)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -357,7 +357,8 @@ module Avo
357
357
  def set_applied_filters
358
358
  reset_filters if params[:reset_filter]
359
359
 
360
- return @applied_filters = {} if (fetched_filters = fetch_filters).blank?
360
+ # Return if there are no filters or if the filters are actualy ActionController::Parameters (used by dynamic filters)
361
+ return @applied_filters = {} if (fetched_filters = fetch_filters).blank? || fetched_filters.is_a?(ActionController::Parameters)
361
362
 
362
363
  @applied_filters = Avo::Filters::BaseFilter.decode_filters(fetched_filters)
363
364
 
@@ -162,7 +162,7 @@ module Avo
162
162
  view: Avo::ViewInquirer.new(params[:via_reflection_view]),
163
163
  record: parent,
164
164
  params: params,
165
- user: current_user
165
+ user: _current_user
166
166
  )
167
167
 
168
168
  reflection_resource.detect_fields.get_field_definitions.find do |field|
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.1.5" unless const_defined?(:VERSION)
2
+ VERSION = "3.1.7" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin