alchemy_cms 5.2.6 → 5.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: 97e1ed1598e179337636198e31cf6d94b85bce3376cd1cb704e6a6e3312224b7
4
- data.tar.gz: 2cfe0ee0fb63eddb1d5de0ac156e9f3abfcc6ac91d6652ebf8aaf80db3da6e61
3
+ metadata.gz: d356d5cf9b97a20b587b2cdc07db82751af3cf71e9ce15c88ebb969667bccb33
4
+ data.tar.gz: 8af9070583ecd3cdb3431c131f88bbb1dc6acec03b44ee1a7a6feeec2ebc621c
5
5
  SHA512:
6
- metadata.gz: 43f19d474f2e3e153af2b98d3867e7b0151f6ccc3fa4518e88f4b88055fe99cda98a11d53e668e8e5c8485ed17e4a52f0547a8e819f8475ba95c06b6de5f33c1
7
- data.tar.gz: 641ade4c39110add57ddcf2c5a5968541ebafc953f47b9c3f10d6681cfa6d31357794df4b03d488597bc5f56b0e1696a550d57e29da170aac74946bf8b86d167
6
+ metadata.gz: 9892f2979e766cb0159cc1d547709f9afe122e0ba1fbaf4a8e4d568d5158db6819db7031132dde61f1793318207a30021a65281305770c802318b25fab05becd
7
+ data.tar.gz: c2c20b120289d05b74d19c1c51168f6218e5df1c8bec0d6fc3bfead3af65d9de51c93c01bbc9cb5795f53452b5835e573397744ba81c75547ce5689a32f47fb1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 5.2.7 (2022-03-01)
2
+
3
+ - Fix copying page with descendants to a different language ([dbwinger](https://github.com/dbwinger))
4
+ - Handle copying/pasting global pages ([dbwinger](https://github.com/dbwinger))
5
+
1
6
  ## 5.2.6 (2022-02-28)
2
7
 
3
8
  - Add crop_resize Dragonfly processor ([tvdeyen](https://github.com/tvdeyen))
@@ -217,8 +217,8 @@ module Alchemy
217
217
 
218
218
  def copy_and_paste(source, new_parent, new_name)
219
219
  page = copy(source, {
220
- parent_id: new_parent.id,
221
- language: new_parent.language,
220
+ parent: new_parent,
221
+ language: new_parent&.language,
222
222
  name: new_name,
223
223
  title: new_name,
224
224
  })
@@ -415,6 +415,7 @@ module Alchemy
415
415
  next if child == new_parent
416
416
 
417
417
  new_child = Page.copy(child, {
418
+ parent_id: new_parent.id,
418
419
  language_id: new_parent.language_id,
419
420
  language_code: new_parent.language_code,
420
421
  })
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "5.2.6"
4
+ VERSION = "5.2.7"
5
5
 
6
6
  def self.version
7
7
  VERSION
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alchemy_cms/admin",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
4
4
  "description": "AlchemyCMS",
5
5
  "browser": "package/admin.js",
6
6
  "files": [
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: 5.2.6
4
+ version: 5.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: 2022-02-28 00:00:00.000000000 Z
16
+ date: 2022-03-01 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active_model_serializers