[
https://issues.apache.org/jira/browse/OFBIZ-5385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Carlow updated OFBIZ-5385:
------------------------------------
Attachment: ProductWorker.java.diff
This patch fixes the error by changing the SupplierProduct list to contain mutable entities by not getting the list from cache. The same change had to be applied to the ProductContent list created afterwards. Without this patch, a new variant product is created from the new feature selection combination but the virtual product SupplierProduct and ProductContent records are not created as intended.
> Purchase order immutable/unchangeable errors when adding variant products
> -------------------------------------------------------------------------
>
> Key: OFBIZ-5385
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5385> Project: OFBiz
> Issue Type: Bug
> Affects Versions: SVN trunk
> Reporter: Christian Carlow
> Attachments: ProductWorker.java.diff
>
>
> This error message is generated when trying to add a variant product to a purchase order cart after features have been selected:
> Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.IllegalStateException: This object has been flagged as immutable (unchangeable), probably because it came from an Entity Engine cache.
--
This message was sent by Atlassian JIRA
(v6.1#6144)