[4.x]: Internal adjustsments cache not updated after saving new adjustments? #3283
Labels
commerce4
Issues related to Commerce v4
🔎 status: investigating
Trying to reproduce
ℹ️ status: need more info
When waiting for user to supply database or more information.
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 withsetAdjustments
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
The text was updated successfully, but these errors were encountered: