avo 3.1.4 → 3.1.6

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.

@@ -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
 
@@ -282,12 +282,13 @@ module Avo
282
282
  # Skip items that don't have an id
283
283
  next true if !item.respond_to?(:id)
284
284
 
285
- # Skip tab groups
285
+ # Skip tab groups and tabs
286
286
  # Skip headings
287
287
  # Skip location fields
288
288
  # On location field we can have field coordinates and setters with different names
289
289
  # like latitude and longitude
290
290
  next true if item.is_a?(Avo::Resources::Items::TabGroup) ||
291
+ item.is_a?(Avo::Resources::Items::Tab) ||
291
292
  item.is_heading? ||
292
293
  item.is_a?(Avo::Fields::LocationField)
293
294
 
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.1.4" unless const_defined?(:VERSION)
2
+ VERSION = "3.1.6" 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.4
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-12 00:00:00.000000000 Z
12
+ date: 2023-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord