Skip to content

[4.x]: Internal adjustsments cache not updated after saving new adjustments? #3283

@boboldehampsink

Description

@boboldehampsink

What happened?

In the method \craft\commerce\elements\Order::_saveAdjustments, previous adjustments can be deleted. But if you run $this->getAdjustments() again after that, the deleted adjustments are still there? I think _saveAdjustments should update the adjustments with setAdjustments after it has done its part.

Craft CMS version

4

Craft Commerce version

4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

commerce4Issues related to Commerce v4ℹ️ status: need more infoWhen waiting for user to supply database or more information.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions