---- exception report ----------------------------------------------------------
ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.
Exception: java.lang.Exception
Message: Stack Trace
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1751)
org.ofbiz.order.order.OrderServices$1.call(OrderServices.java:5610)
org.ofbiz.order.order.OrderServices$1.call(OrderServices.java:5605)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343088 13f79535-47bb-0310-9956-ffa450edef68
1) "Deleted row in FilterOrderList.groovy" https://issues.apache.org/jira/browse/OFBIZ-3431
2) "getOrders() in OrderListState does not work" https://issues.apache.org/jira/browse/OFBIZ-4883
As I had some doubt about the origin of the issues and wanted to check if they were real and would not hide something else or have side-effect, I did a complete historical review.
1) Could have been hidden using groovy safe navigation
ie
facilityId = orderHeader.originFacilityId ?: productStore?.inventoryFacilityId;
instead of
facilityId = orderHeader.originFacilityId ?: productStore.inventoryFacilityId;
But anyway it was wrong from the start when I introduced the feature http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/filterorderlist.bsh?view=markup&pathrev=465376
(related to https://issues.apache.org/jira/browse/OFBIZ-644)
The facilityId was useless. I remember I extracted it from a client specific feature and certainly forgot to remove this part (useless at least in OFBiz code) when I merged with Leon's code.
2) Was Erwan wrong C/P or typo at http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderListState.java?r1=1305309&r2=1305308&pathrev=1305309
Thanks to Chatree Srichart and Nils Pförtner for reports (actually I found OFBIZ-3431 by chance while working on the issue)
Still, David was against this feature when I introduced it. And I must say that almost 6 years later I tend to agree with him. I have since crossed the same kind of OO patterns written in OFBiz based application by good Java programmers. They breaks the "simple" ways used in OFBiz at the application level (of course not at the framework level where those patterns are useful) and often finish to be problems...
Quoting David:
<<In general I don't like the pattern used in this patch. It doesn't follow best practices or use the tools and patterns established in OFBiz to make all of our lives easier, during implementation but even more importantly during maintenance and customization. There are very good reasons we recommend using object oriented patterns written in Java on only very rare occasions. This is a good example of something that is not complex enough to justify, and it will be a maintenance problem in the future.>>
Anyway this code is there now, and it's actually not as simple to replace...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1342980 13f79535-47bb-0310-9956-ffa450edef68
Thanks to Ritu Raj Lakhera for the report and the patch; the one I have committed fixes the bug in a slightly different way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341314 13f79535-47bb-0310-9956-ffa450edef68
Reported by Kiran:
In the screen widget, add a set action that refers to sessionAttributes, it doesn't work.
e.g: Following doesn't work:
<set field="titleProperty" value="${sessionAttributes.autoName}"/>
Following works:
<set field="titleProperty" from-field="autoName" from-scope="user"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340821 13f79535-47bb-0310-9956-ffa450edef68
For a Survey Question of Type= Selected option, while trying to edit a survey question option the following error is encountered :
In set-pk-fields a value was not found with the specified valueAcsr: lookupKeyValue, not setting fields
URL : https://demo-trunk.ofbiz.apache.org:8443/content/control/EditSurveyQuestions?surveyId=1501
Screenlet:
Survey Options .
jleroux: this screen is not much user friendly (for instance when you edit the survey question option you are not redirected to the screenlet anchor)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340661 13f79535-47bb-0310-9956-ffa450edef68
Split Into Multiple Shipment Button is not working on quick checkout page
jleroux: part the current known issue with Freemarker and findByAnd(), it works well on both sides (Order Manager and eCommerce)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340415 13f79535-47bb-0310-9956-ffa450edef68
If the shipgroup does not have a carrierPartyId (which is the case, if an order does not need shipping and its shipping method is NA), there is an FTL-error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340400 13f79535-47bb-0310-9956-ffa450edef68