spree_core 4.10.2 → 4.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a3f970e11df3f92c53436155f90c3d5e10ee3f8dbac77c15096b5b69f23e1a1
4
- data.tar.gz: 8b0487012673c1da44270b625b22af7ab74a2bc3db16ead5ccf0bd1ac514a3bd
3
+ metadata.gz: 22786a2b8af664ee71132e3849310d01c817a6ca202e24acd9d6e3ddd0a34344
4
+ data.tar.gz: e263150d944af515592e0c2340ed5ce03678acb8cb28529e7e248c1152c38e60
5
5
  SHA512:
6
- metadata.gz: 6f28e8ac4fbb702c5ff5764d18976b5246bf5d2f89659e3068e2df99e0ec5aa422e8ca7e719e0f724a70bcb9b973ef30b82a6ae4acbe2980b346092bccd6009b
7
- data.tar.gz: deab9f6152ded24ae86ec5bff925a0858f17d13d372d0a769cff47dc38c469d66fff8ad58931e59d1eac959f78ef8a62d7c4521ca618ecb38cccef7169f1a265
6
+ metadata.gz: cf13bafda9e2799e6c0ed1c460de3b38cf578dab4b66841b5a240c3c28f5a0ac7da2d3d0856cf0824f25dcf3ac137c14776846f4161c7eb95755dc02b90e7c2f
7
+ data.tar.gz: 40b977b63e00247602d96a3ef3cff2f754fe0673c2f1d92392c06570f8f2944cc1f41df229a54adb5a23e8e4d5e607f86e7008f077c8ce63d12312314b9255ee
@@ -19,13 +19,17 @@ module Spree
19
19
  end
20
20
 
21
21
  def bill_address_id=(id)
22
+ return if bill_address_id == id
23
+
22
24
  address = Spree::Address.find_by(id: id)
23
- if address && address.user_id == user_id
25
+ # rubocop:disable Style/ConditionalAssignment
26
+ if address && user_id.present? && address.user_id == user_id
24
27
  self['bill_address_id'] = address.id
25
- bill_address.reload
26
28
  else
27
29
  self['bill_address_id'] = nil
28
30
  end
31
+ # rubocop:enable Style/ConditionalAssignment
32
+ reset_bill_address
29
33
  end
30
34
 
31
35
  def bill_address_attributes=(attributes)
@@ -34,13 +38,17 @@ module Spree
34
38
  end
35
39
 
36
40
  def ship_address_id=(id)
41
+ return if ship_address_id == id
42
+
37
43
  address = Spree::Address.find_by(id: id)
38
- if address && address.user_id == user_id
44
+ # rubocop:disable Style/ConditionalAssignment
45
+ if address && user_id.present? && address.user_id == user_id
39
46
  self['ship_address_id'] = address.id
40
- ship_address.reload
41
47
  else
42
48
  self['ship_address_id'] = nil
43
49
  end
50
+ # rubocop:enable Style/ConditionalAssignment
51
+ reset_ship_address
44
52
  end
45
53
 
46
54
  def ship_address_attributes=(attributes)
@@ -1,5 +1,5 @@
1
1
  module Spree
2
- VERSION = '4.10.2'.freeze
2
+ VERSION = '4.10.3'.freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.2
4
+ version: 4.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2026-01-08 00:00:00.000000000 Z
13
+ date: 2026-02-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -1165,9 +1165,9 @@ licenses:
1165
1165
  - BSD-3-Clause
1166
1166
  metadata:
1167
1167
  bug_tracker_uri: https://github.com/spree/spree/issues
1168
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.10.2
1168
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.10.3
1169
1169
  documentation_uri: https://docs.spreecommerce.org/
1170
- source_code_uri: https://github.com/spree/spree/tree/v4.10.2
1170
+ source_code_uri: https://github.com/spree/spree/tree/v4.10.3
1171
1171
  post_install_message:
1172
1172
  rdoc_options: []
1173
1173
  require_paths: