[ 
https://issues.apache.org/jira/browse/OFBIZ-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hans Bakker updated OFBIZ-1566:
-------------------------------

    Attachment: productDisc.diff

the attached patch fixes the error and will show the the virtual product with 
the message: this product is out of stock.

please let me know is this patch is acceptable then i will commit it to the 
trunk.

> if all variants of a virtual product run out of stock and the disc indicator 
> is set to 'Y' the ecommerce system abends
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1566
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1566
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: SVN trunk
>            Reporter: Hans Bakker
>         Attachments: productDisc.diff
>
>
> if all variants of a virtual product run out of stock and the product 'disc' 
> indicator is set to 'Y' the system abends with the following error message 
> when the product detail page is shown of the virtual product.
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> [component://ecommerce/widget/CatalogScreens.xml#productdetail]:
> org.ofbiz.base.util.GeneralException: Error running BSH script at location
> [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh]:
> org.ofbiz.base.util.GeneralException: Error running BSH script at
> [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh],
> line [422]: Sourced file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh
> : Method Invocation dispatcher.runSync : at Line: 422 : in file:
> component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh
> : dispatcher .runSync ( "getAssociatedProducts" , UtilMisc .toMap (
> "productId" , productId , "type" ,
> "PRODUCT_OBSOLESCENCE" , "checkViewAllow" , Boolean .TRUE ,
> "prodCatalogId" , currentCatalogId ) ) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to