alchemy_cms 4.2.1 → 4.2.2

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: 1cee9559837fa4a7f082aaef25d8ad9d0b60f97deeb95abe7c5e02be7e0b1c51
4
- data.tar.gz: '0933e0f1400f3518d7092129e532583ea4846da5c20043185a2025dcd4f335b2'
3
+ metadata.gz: d15084caa39f27fd7e147a1b8a084703ac45296d8a07eb4beff76b112eefdb0e
4
+ data.tar.gz: aa0a0ce5aefb6e4ec8f515ce32dfc4318aa0c4fd0890dcf645e20e848f8a47cb
5
5
  SHA512:
6
- metadata.gz: cba619e0c9801e3ad568efaeeea2f1a6d28184da08f53aeeb60481f257c9e3dbe56555720f779e3dbb6def2b036c9584b46d765d241016a4b23d1fe398933d5b
7
- data.tar.gz: 64f673911a078cadc30bdeb6cd0be0c7245feac2b2822efab375abe26ef7bcc32b0eea1736199b4ed09cd57b36be080de84621bc85f4c861c277f66a1de2d78c
6
+ metadata.gz: 838e6dabcd215deca170a9a521bd65e409edfe450486c675234c42b49de5303fcdbfb16b842a1fab81e3dd322efcb25176e7f52f6e1b81baa4f910ab873fc02d
7
+ data.tar.gz: 6e0e0db13cc814a9956402df065b513858d94e46677ccbe37435b69dd522d096137416d3c75692e990b412d35a01ddb9f95d5aa0a6763c21080a2b3e5509c34f
@@ -1,3 +1,7 @@
1
+ ## 4.2.2 (2019-08-13)
2
+
3
+ - Fallback to default locale if unavailable locale requested [#1610](https://github.com/AlchemyCMS/alchemy_cms/pull/1610) ([mamhoff](https://github.com/mamhoff))
4
+
1
5
  ## 4.2.1 (2019-08-08)
2
6
 
3
7
  - Use strings as JSON root keys in API controllers [#1602](https://github.com/AlchemyCMS/alchemy_cms/pull/1602) ([tvdeyen](https://github.com/tvdeyen))
@@ -28,7 +28,7 @@ module Alchemy
28
28
 
29
29
  # Checks if we need to change to locale or not.
30
30
  def locale_change_needed?
31
- params[:admin_locale].present? || session[:alchemy_locale].blank?
31
+ params[:admin_locale].present? || session[:alchemy_locale].blank? || available_locale.nil?
32
32
  end
33
33
 
34
34
  # Returns either the most preferred locale that is within the list of available locales or nil
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "4.2.1"
4
+ VERSION = "4.2.2"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2019-08-08 00:00:00.000000000 Z
16
+ date: 2019-08-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active_model_serializers