Commit Graph
14503 Commits
Author SHA1 Message Date
Adam Heath d9a34a8c8c Deprecate EntityUtil.getRelated(ByAnd|OrderBy)(|Cache), replaced with
the single getRelated variant.

EntityUtil.getRelatedByAnd(String, Map) replaced by
EntityUtil.getRelated(String, Map, List, boolean)

EntityUtil.getRelatedByAndCache(String, Map) replaced by
EntityUtil.getRelated(String, Map, List, boolean)

EntityUtil.getRelatedOrderBy(String, List) replaced by
EntityUtil.getRelated(String, Map, List, boolean)

EntityUtil.getRelatedOrderByCache(String, List) replaced by
EntityUtil.getRelated(String, Map, List, boolean)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343532 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:21:38 +00:00
Adam Heath 00047e7e37 DEPRECATION: applications: GenericValue.getRelated(ByAnd|OrderBy)(|Cache)
replaced by the single getRelated variant.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343528 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:20:58 +00:00
Adam Heath 2659ad3134 DEPRECATION: applications/workeffort: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343518 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:19:16 +00:00
Adam Heath 1e4d07939e DEPRECATION: applications/product: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343517 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:19:07 +00:00
Adam Heath 981193552e DEPRECATION: applications/party: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343516 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:18:41 +00:00
Adam Heath d868606e2c DEPRECATION: applications/order: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343515 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:18:30 +00:00
Adam Heath 463cedadd0 DEPRECATION: applications/marketing: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343514 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:18:12 +00:00
Adam Heath 255d84f1b1 DEPRECATION: applications/manufacturing: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343513 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:18:05 +00:00
Adam Heath 536d40e5e4 DEPRECATION: applications/humanres: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343512 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:17:53 +00:00
Adam Heath 43efe66c75 DEPRECATION: applications/content: GenericValue.getRelated/getRelatedCache variants replaced with a single getRelated variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343511 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:17:44 +00:00
Adam Heath 58734f28d7 DEPRECATION: applications/accounting: GenericValue.getRelated/getRelatedCache variants replaced with a single getRelated variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343510 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:17:32 +00:00
Adam Heath 5af6397694 OPTIMIZE: Replace Delegator.getRelated/getRelatedCache calls with
GenericValue.getRelated/getRelatedCache.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343505 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:16:35 +00:00
Adam Heath 941d6ef482 DEPRECATION: applications/workeffort: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343490 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:21 +00:00
Adam Heath 206b3378d1 DEPRECATION: applications/securityext: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343489 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:11 +00:00
Adam Heath e606223cca DEPRECATION: applications/product: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343488 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:02 +00:00
Adam Heath 3d5bad1bf4 DEPRECATION: applications/party: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343487 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:13:29 +00:00
Adam Heath 7264fff0a3 DEPRECATION: applications/party: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343486 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:13:22 +00:00
Adam Heath 26ed25cdea DEPRECATION: applications/order: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343485 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:13:04 +00:00
Adam Heath 51413d477a DEPRECATION: applications/marketing: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343484 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:36 +00:00
Adam Heath 6e662f31bf DEPRECATION: applications/manufacturing: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343483 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:26 +00:00
Adam Heath b0e7c8675b DEPRECATION: applications/humanres: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343482 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:11 +00:00
Adam Heath a92d79d341 DEPRECATION: applications/content: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343481 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:04 +00:00
Adam Heath 3779f5ef4f DEPRECATION: applications/commonext: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343480 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:11:53 +00:00
Adam Heath 7d2b0d9865 DEPRECATION: applications/accounting: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343479 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:11:43 +00:00
Adam Heath 3482d929e7 OPTIMIZE: Replace Delegator.getRelatedOne calls with
GenericValue.getRelatedOne.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343474 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:37 +00:00
Adam Heath 2d512fd498 FORMATTING: Add final trailing newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343473 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:28 +00:00
Adam Heath 91dcd099d5 OPTIMIZE: Join a few overly long split lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343472 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:11 +00:00
Adam Heath eb4695bb96 FIX: Now that TransactionUtil.doNewTransaction is fixed to actually
work, back out the incorrect fix done in 1343088.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343470 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:55:11 +00:00
Jacopo Cappellato 95e8f72311 Removed some unnecessary ?exists statements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343158 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:04:35 +00:00
Jacopo Cappellato d0dd1897f3 Replaced "!= null" with "??" (that is a replacement for the deprecated "exists" built-in).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343156 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 07:36:41 +00:00
Hans Bakker 20c8d5f282 foreign key name too long
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343122 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 01:15:16 +00:00
Jacques Le Roux 54555ad7b7 Fixes this error found by chance in log
---- 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
2012-05-27 20:28:16 +00:00
Jacques Le Roux baa73733d2 Where it shows that maintaining help is not that easy. Unlike Javadoc you don't have under eyes when changing things
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343030 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:41:13 +00:00
Jacques Le Roux 720578ecf3 Replaces all remaining title="${uiLabelMap.CommonEmptyHeader}" by title=" ", and specific case in ListPartyCommEvents
This closes the CommonEmptyHeader chapter

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343016 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 08:41:47 +00:00
Jacques Le Roux fcdb9d5eaa Closes
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
2012-05-26 22:13:01 +00:00
Jacques Le Roux b03e96411f A completing patch from Pierre Smits "Complete Help screens in Manufacturing in NL language" https://issues.apache.org/jira/browse/OFBIZ-4898
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1342875 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 10:09:03 +00:00
Hans Bakker ad1682658b add entities and services to be able to add content and notes to invoices
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341765 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 07:22:30 +00:00
Hans Bakker fe32d603f1 comment of jacopo: not required code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341344 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 08:21:01 +00:00
Hans Bakker d859a2d5db add account activation email type to product store which can be used for the to be approved registrations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341341 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 08:03:02 +00:00
Jacopo Cappellato 7b391743ff Fixed error reported in OFBIZ-4892: in orders with more than one promo codes, only one code was stored in OrderProductPromoCode entity.
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
2012-05-22 06:27:19 +00:00
Hans Bakker a1a6ecc98f assume tag status is pending when not provided
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341293 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 03:33:03 +00:00
Adam Heath d2dfc93a31 FIX: Replace BeansWrapper.getDefaultInstance() with
FreeMarkerWorker.getDefaultOfbizWrapper(); these were missed in
v1340631.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341053 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 14:39:59 +00:00
Jacques Le Roux bcb39b0cd7 Adds a French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340849 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 21:40:50 +00:00
Jacques Le Roux a05d0f3f7d Fixes some wrong French accents found while working on OFBIZ-3913
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340845 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 21:31:36 +00:00
Jacques Le Roux 4395b7967d A patch from Daniel Riquelme "sessionAttributes doesn't work from screen widget" https://issues.apache.org/jira/browse/OFBIZ-4669
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
2012-05-20 20:21:06 +00:00
Jacques Le Roux 26c3dd618e A patch from Harsha Chadhar for "Can not add "Question Options" within the Survey section of the Content application." https://issues.apache.org/jira/browse/OFBIZ-4879
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
2012-05-20 10:20:59 +00:00
Jacques Le Roux 0819d43345 A patch from Harsha Chadhar for "Remove Survey Question Option not working." https://issues.apache.org/jira/browse/OFBIZ-4878
On trying to delete/remove Survey Question Options for Survey Question Type= Selected Option, the following error is occurred :
Url : https://demo-trunk.ofbiz.apache.org:8443/content/control/removeSurveyQuestionAppl?surveyId=1501&surveyQuestionId=10000&surveyOptionSeqId=00001

Error calling event: org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [surveyId] passed to secure (https) request-map with uri [removeSurveyQuestionAppl] with an event that calls service [deleteSurveyQuestionAppl]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340657 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 10:13:22 +00:00
Jacques Le Roux 137fed08aa A patch from Ankit Jain "Split Into Multiple Shipment Button is not working in Order Manager quick checkout" https://issues.apache.org/jira/browse/OFBIZ-4866
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
2012-05-19 11:13:38 +00:00
Jacques Le Roux e6cbafd4de A patch from Sebastian Leitner for "Possible Freemarker error in ordershippinginfo.ftl" https://issues.apache.org/jira/browse/OFBIZ-4881
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
2012-05-19 10:05:33 +00:00
Jacques Le Roux 5e1557183e Adrian suggested to removes all left-text-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340391 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:42:20 +00:00