alchemy_cms 7.2.5 → 7.2.7

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: cf46c4d83e5dd7d012a77672441a70408bbf865f9aa5e3c3b005866fd5fa2a29
4
- data.tar.gz: 9949271d7fd1581902220fe3bc69d81801ab3d34e6a1601da7b873a0a623ae87
3
+ metadata.gz: 670e0b2cd72ba2921ac426032c27d0cb6b04a43e9fe4ae89ea0c7e56f6278f6a
4
+ data.tar.gz: 161e0a7b47c9b769730158642d1aa534d0ac7ed3d0b0a15e52b59b8dc7d2866e
5
5
  SHA512:
6
- metadata.gz: 56404d066fd58edeb6af7c6a612860a44f802a6bc05ba7ab01b7cc46cd0c1a167e83a26c801f958544a16299c72e7e5a556094b076b09e78c2433f0a0a438083
7
- data.tar.gz: e4b58afa15303074db32f10dedb36cdd2fb6dbe1992d619a65b848acf315fb46a0e933da5f2b24a4df7d4578a0df8e76c3e13cc08c499f410ff43299275059f4
6
+ metadata.gz: f81138adc31691f995fe4ce4dde485cad775f97c29435f797d8884bac65a14f111332b4d34efedd1e392166a0de1935d9ddf09509ba8cfd5963e5977a39211b5
7
+ data.tar.gz: 14d5924f88dc2df9a6edd60af8b68ec8a35a6fd8e5d543b98b629bb8e822c3889756dde244ca48b8d12b5eba9d0916fec6caad1e5d43b3e4ef370b63cd8f0e5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.2.7 (2024-10-15)
4
+
5
+ - [7.2-stable] Fix filtering associated models by id [#3069](https://github.com/AlchemyCMS/alchemy_cms/pull/3069) ([tvdeyen](https://github.com/tvdeyen))
6
+ - [7.2-stable] Use alchemy_display_name for page actor names [#3030](https://github.com/AlchemyCMS/alchemy_cms/pull/3030) ([alchemycms-bot](https://github.com/alchemycms-bot))
7
+
8
+ ## 7.2.6 (2024-09-04)
9
+
10
+ - [7.2-stable] Set Alchemy::Page.current in Messages Controller [#3021](https://github.com/AlchemyCMS/alchemy_cms/pull/3021) ([tvdeyen](https://github.com/tvdeyen))
11
+ - [7.2-stable] Fallback to @page var if no Current.page is set [#3020](https://github.com/AlchemyCMS/alchemy_cms/pull/3020) ([tvdeyen](https://github.com/tvdeyen))
12
+
3
13
  ## 7.2.5 (2024-09-04)
4
14
 
5
15
  - [7.2-stable] Render Datetime ingredient in local time zone [#3019](https://github.com/AlchemyCMS/alchemy_cms/pull/3019) ([tvdeyen](https://github.com/tvdeyen))
@@ -138,7 +138,7 @@ module Alchemy
138
138
  end
139
139
 
140
140
  def eligible_resource_filter_values
141
- resource_filters.map(&:values).flatten
141
+ resource_filters.map(&:values).flatten!.map!(&:to_s)
142
142
  end
143
143
 
144
144
  # Returns a translated +flash[:notice]+ for current controller action.
@@ -66,6 +66,7 @@ module Alchemy
66
66
  MessagesMailer.contact_form_mail(@message, mail_to, mail_from, subject).deliver
67
67
  redirect_to_success_page
68
68
  else
69
+ Current.page = @page
69
70
  render template: "alchemy/pages/show"
70
71
  end
71
72
  end
@@ -72,7 +72,7 @@ module Alchemy
72
72
  #
73
73
  def render_elements(options = {}, &blk)
74
74
  options = {
75
- from_page: Current.page,
75
+ from_page: Current.page || @page,
76
76
  render_format: "html"
77
77
  }.update(options)
78
78
 
@@ -491,7 +491,7 @@ module Alchemy
491
491
  # does not respond to +#name+ it returns +'unknown'+
492
492
  #
493
493
  def creator_name
494
- creator.try(:name) || Alchemy.t("unknown")
494
+ creator.try(:alchemy_display_name) || Alchemy.t("unknown")
495
495
  end
496
496
 
497
497
  # Returns the name of the last updater of this page.
@@ -500,7 +500,7 @@ module Alchemy
500
500
  # does not respond to +#name+ it returns +'unknown'+
501
501
  #
502
502
  def updater_name
503
- updater.try(:name) || Alchemy.t("unknown")
503
+ updater.try(:alchemy_display_name) || Alchemy.t("unknown")
504
504
  end
505
505
 
506
506
  # Returns the name of the user currently editing this page.
@@ -509,7 +509,7 @@ module Alchemy
509
509
  # does not respond to +#name+ it returns +'unknown'+
510
510
  #
511
511
  def locker_name
512
- locker.try(:name) || Alchemy.t("unknown")
512
+ locker.try(:alchemy_display_name) || Alchemy.t("unknown")
513
513
  end
514
514
 
515
515
  # Key hint translations by page layout, rather than the default name.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.2.5"
4
+ VERSION = "7.2.7"
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: 7.2.5
4
+ version: 7.2.7
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: 2024-09-04 00:00:00.000000000 Z
16
+ date: 2024-10-15 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer