Commit Graph
21879 Commits
Author SHA1 Message Date
Adrian Crum cc8d5e42fd Code formatting in FtpServices.java - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1453770 13f79535-47bb-0310-9956-ffa450edef68
2013-03-07 10:57:39 +00:00
Hans Bakker 289eec5846 ignore the backend analytics in e-commerce frontend
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1453169 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 06:14:50 +00:00
Jacques Le Roux 0ccbd4df4f A patch from Shi Jinghai "Apply desiredUomId in ProductWorker.getProductWeight" https://issues.apache.org/jira/browse/OFBIZ-5147
In getProductWeight method of applications/product/src/org/ofbiz/product/product/ProductWorker.java, the desiredUomId is not applied when calling convertUom service. I replaced "WT_lb" with desiredUomId.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1452382 13f79535-47bb-0310-9956-ffa450edef68
2013-03-04 16:42:33 +00:00
Jacques Le Roux 87a9e9b312 This prevented to load both web and pos simultaneously (both-containers.xml does not exist anymore).
It needs a compilation to work again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1451879 13f79535-47bb-0310-9956-ffa450edef68
2013-03-02 12:32:11 +00:00
Paul Foxworthy 8c6a68202d Display states for default country in New Shipping Address for order https://issues.apache.org/jira/browse/OFBIZ-5125
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1451195 13f79535-47bb-0310-9956-ffa450edef68
2013-02-28 13:45:34 +00:00
Paul Foxworthy d65c92988b In geoAutoCompleter.js, the jQuery UI function name should be autocomplete,
not autcomplete


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1451183 13f79535-47bb-0310-9956-ffa450edef68
2013-02-28 12:49:42 +00:00
Hans Bakker 52326232ef currently tax is calculated before promotion, added am option in the productstore to be able to set the tax calculation after promotion. This in order to remain backward compatible. Also added a junit test for this. Contribution from Tom, employee from Antwebsystems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449615 13f79535-47bb-0310-9956-ffa450edef68
2013-02-25 08:25:07 +00:00
Adrian Crum 590f46f032 FIXME comment. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449430 13f79535-47bb-0310-9956-ffa450edef68
2013-02-24 00:29:25 +00:00
Adrian Crum ae07fca011 Fixed a bug in one of my recent commits:
https://issues.apache.org/jira/browse/OFBIZ-5140


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449429 13f79535-47bb-0310-9956-ffa450edef68
2013-02-24 00:27:33 +00:00
Jacques Le Roux 53c89e0757 Still not sure why Eclipse complained about
request.getSession().getServletContext()).getContextPath()

anyway
request.getContextPath()
is enough

see bottom of oracle.com/javaee/6/api/javax/servlet/ServletContext.html#method_detail

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449290 13f79535-47bb-0310-9956-ffa450edef68
2013-02-23 09:51:34 +00:00
Jacques Le Roux b530f6d96d I was pretty stupid to blindly follow mad advice from Eclipse. I really don't understand why it finds an error there, nevermind
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449286 13f79535-47bb-0310-9956-ffa450edef68
2013-02-23 09:07:05 +00:00
Jacques Le Roux 0d85c7eeab No functional changes, just formatting and adding a required cast
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449282 13f79535-47bb-0310-9956-ffa450edef68
2013-02-23 08:47:28 +00:00
Jacques Le Roux 56c153168a A patch from Nicolas Malin for "Adding unit test for new element to load data" https://issues.apache.org/jira/browse/OFBIZ-5112
With the issue commit OFBIZ-4949, it' necessary to complete unit test on this feature.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449279 13f79535-47bb-0310-9956-ffa450edef68
2013-02-23 08:26:21 +00:00
Jacques Le Roux 830f9f7b91 A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137
Translated missing zh labels for projectmgr, scrum, service, webpos and webtools components. These are the last 5 components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1448350 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 18:50:33 +00:00
Jacques Le Roux b591e84b2a A slightly modified patch from Gil Portenseigne for "Missing PartyCountryCode uiLabel" https://issues.apache.org/jira/browse/OFBIZ-5138
The label ${uiLabelMap.PartyCountryCode} is used several times in the project but i could not find the definition of PartyCountryCode in label definition files.
I looked further and found CommonCountryCode in label file which is not used and fill the need for PartyCountryCode. To solve this I propose to rename all PartyCountryCode to CommonCountryCode.

jleroux: I also moved CommonCountryCode, CommonCountryCodeMissing and CommonCountryMissing from PartyUiLabels.xml to CommonUiLabels.xml





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447664 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 10:55:10 +00:00
Adrian Crum 934d162622 Small fixup for EntityEcaCondition.java accessor method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447638 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 09:02:24 +00:00
Jacques Le Roux 57bdc795b7 A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137
Translated missing zh labels for party, pos and product components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447615 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 07:56:32 +00:00
Sascha Rodekamp 7b0fd3e806 In an exception case the ServiceUtils.setServiceFields method should throw an exception and don't hide it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447603 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 07:18:10 +00:00
Sascha Rodekamp e8ff62f756 Add a small method to the ServiceUtil Class which checks all incoming service attributes and look for fields with the same name in the incoming map and copy those onto the outgoing map. Also includes a userLogin if service requires one.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447246 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 13:26:00 +00:00
Jacques Le Roux cc9fa9624f A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137
Translated missing zh labels for oagis and order components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447170 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 09:35:51 +00:00
Adrian Crum 88d0052633 Small fixup for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447114 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 01:13:10 +00:00
Adrian Crum 4ec75ee3c7 Small enhancements to Entity ECA classes: improve thread safety, eliminate null checks on fields that are never null, add some accessor methods, small code cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447112 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 01:03:58 +00:00
Adrian Crum b0014ab3f6 Small enhancements to EntityEcaRule.java: parse <eca> element only once, improve thread safety, add some accessor methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447108 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 00:10:25 +00:00
Adrian Crum 6dec952bc7 EntityEcaSetField.java bug fixes: test for null on field that was never null, not thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447107 13f79535-47bb-0310-9956-ffa450edef68
2013-02-18 00:01:52 +00:00
Adrian Crum 3caa1e66d3 Small improvements to ApacheFopWorker: check for file/folder existence before applying settings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446940 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 20:43:38 +00:00
Adrian Crum 9b6b06c44a Reverting revision 1345849 because it is not thread-safe and it doesn't work.
It appears this was an attempt to create per-tenant FOP factories, but instead each tenant overwrites the previous FOP factory settings.

A proper implementation would require a FOP factory cache keyed by delegator name.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446913 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 16:31:31 +00:00
Adrian Crum a0402a0d38 Small improvement to Web Tools services screen: Add service definition location.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446885 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 12:37:20 +00:00
Jacques Le Roux 675a2794a0 A patch from Chatree Srichart for "The createDataResourceRole service does not check if partyId exists" https://issues.apache.org/jira/browse/OFBIZ-5133
The createDataResourceRole service has a partyId attribute as optional but its implementation method does not check if the partyId exists before creating a DataResourceRole value.
The ensurePartyRole service also has a partyId attribute as optional but its implementation method does not check if the partyId exists before creating a PartyRole value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446876 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 11:54:50 +00:00
Jacques Le Roux 121c1f5f99 A patch from Nicolas Malin for "Send mail to a contact list, update screen for more user frendly" https://issues.apache.org/jira/browse/OFBIZ-5132
On marketing component when you will send a mail to a contactList, the screen is easy and effective but not really user-frendly. This screen is available on marketing/control/createContactListCommEvent

I improved :
 * force text/html by default on drop-down
 * set position 2 for content type
 * use advanced editor for content
 * labelise the communicationMethodType


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446875 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 11:49:38 +00:00
Jacques Le Roux 975a7dc9ce A patch from Shi Jinghai for "Chinese localizations (zh) for trunk (Part II)" https://issues.apache.org/jira/browse/OFBIZ-5137
Translated missing zh labels for several components.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446852 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 08:49:01 +00:00
Jacques Le Roux 76da9bea54 A patch from Shi Jinghai for "Chinese localizations (zh) for trunk" https://issues.apache.org/jira/browse/OFBIZ-5134
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446849 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 08:08:38 +00:00
Jacques Le Roux 364b3cd1e6 A patch from Nicolas Malin for "fieldGroup will ignored if all contains fields are ignored" https://issues.apache.org/jira/browse/OFBIZ-5136
When you have a fieldGroup that contains fields with use-when attribute, if all fields aren't use, the fieldGroup is empty.
Improvment: to not display the field group



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446847 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 07:49:28 +00:00
Jacques Le Roux 41a5a96436 A patch from Chatree Srichart for "services_quote.xml#quoteSequence-enforced method is not facet-valid with respect to pattern" https://issues.apache.org/jira/browse/OFBIZ-5135
I got an error message:
Error message: cvc-attribute.3: The value 'quoteSequence-enforced' of attribute 'method-name' on element 'simple-method' is not valid with respect to its type, 'javaClassName'.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446575 13f79535-47bb-0310-9956-ffa450edef68
2013-02-15 13:28:42 +00:00
Jacques Le Roux e18c34f93d A patch from Shi Jinghai for "Chinese localizations (zh) for trunk" https://issues.apache.org/jira/browse/OFBIZ-5134
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446482 13f79535-47bb-0310-9956-ffa450edef68
2013-02-15 09:11:54 +00:00
Jacques Le Roux 8afa159480 A patch from Chatree Srichart for "Ignore "tenant" data files if the multitenant property is "N"" https://issues.apache.org/jira/browse/OFBIZ-4934
The system does not need to load tenant data files if the multitenant property in general.properties is "N". I created a patch to ignore the tenant data files when run ./ant load-demo command.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1444370 13f79535-47bb-0310-9956-ffa450edef68
2013-02-09 14:39:29 +00:00
Jacques Le Roux e3f6acea20 Fixes 2 issues I found by chance while browsing trunk demo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1444356 13f79535-47bb-0310-9956-ffa450edef68
2013-02-09 12:57:36 +00:00
Ashish Vijaywargiya 54935d7db8 No functional changes, Formatted the file as per best practice that we follow in FTL files. Thanks Deepak!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1442197 13f79535-47bb-0310-9956-ffa450edef68
2013-02-04 17:40:56 +00:00
Vikas Mayur 3cce478ea4 Final formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1441333 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 08:02:52 +00:00
Vikas Mayur e9375a9c86 Minor cleanup, merged two different 'if' block.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1441332 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 08:01:35 +00:00
Vikas Mayur 22cd052afc Only formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1441331 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 07:58:19 +00:00
Vikas Mayur 2698fbf8e5 Minor mods to log, type of the default account to be used for store credit and in the log should only be determined after checking the setting on product store.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1441329 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 07:55:53 +00:00
Jacques Le Roux 991129a117 A patch from Leon for "add some omitted zh (CN) translation to OrderUiLables.xml" https://issues.apache.org/jira/browse/OFBIZ-5127
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1440295 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 07:11:42 +00:00
Jacques Le Roux 9825681613 Fixes a duplicated label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1440292 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 07:00:49 +00:00
Jacques Le Roux 20affe0b31 A patch from Taher Alkhateeb for "Corrections and improvements to dependent drop-downs" https://issues.apache.org/jira/browse/OFBIZ-5126
* The getDependentDropdownValues function in miscAjaxFunctions.js is modified with a new argument to allow for empty selections. Therefore, copying the behavior of form widget drop-down's "allow-empty"
* There is only one file affected by item number 2 above: setPriceRulesCondEventJs.ftl Therefore, I fixed it to include the argument in getDependentDropdownValues

jleroux: complete r1438501 where I missed setPriceRulesCondEventJs.ftl, as suggested Taher, for consistency sake, I used '' instead of false

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1438876 13f79535-47bb-0310-9956-ffa450edef68
2013-01-26 10:44:21 +00:00
Jacques Le Roux 82b9ee64f3 A patch from Taher Alkhateeb for "Corrections and improvements to dependent drop-downs" https://issues.apache.org/jira/browse/OFBIZ-5126
* The getDependentDropdownValues function in miscAjaxFunctions.js is modified with a new argument to allow for empty selections. Therefore, copying the behavior of form widget drop-down's "allow-empty"
* There is only one file affected by item number 2 above, therefore, I fixed it to include the argument in getDependentDropdownValues

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1438501 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 13:27:54 +00:00
Jacques Le Roux 8699dd1f03 A patch from Taher Alkhateeb for "Corrections and improvements to dependent drop-downs" https://issues.apache.org/jira/browse/OFBIZ-5126
The setDependentDropdownValuesJs.ftl is using an incorrect argument which usually happens to work because it is a duplicate of another.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1438498 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 13:22:58 +00:00
Jacques Le Roux 79551267eb Damnit, I committed the wrong file at r1438478, reverting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1438492 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 13:17:37 +00:00
Jacques Le Roux d932e4c9cb A patch from Taher Alkhateeb for "Corrections and improvements to dependent drop-downs" https://issues.apache.org/jira/browse/OFBIZ-5126
The setDependentDropdownValuesJs.ftl is using an incorrect argument which usually happens to work because it is a duplicate of another.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1438478 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 12:48:58 +00:00
Jacques Le Roux 54dfb7ea95 A patch from Martin Kreidenweis "Delegator creation fails with new ExecutionPool on trunk" https://issues.apache.org/jira/browse/OFBIZ-4335
The problem is that the wrong class loader is used for the "ofbiz-config-*" threads (NativeLibClassLoader instead of CachedClassLoader). This happens when the threads are created by the static code in ExecutionPool.java when it is executed before the ClassLoaderContainer.init() initializes the CachedClassLoader.

This also causes other problems like: The local resolution of XML Schema files won't work any more because it's also using the wrong classloader, which can't find the XSD files:

[java] 2011-07-21 12:21:45,333 (ofbiz-config-0) [                 UtilXml:1022:WARN ] [UtilXml.LocalResolver.resolveEntity] could not find LOCAL DTD/Schema with publicId [null] and the file/resource is [service-eca.xsd]

You can trigger this behavior in current ofbiz trunk by setting an expire time for the properties cache in cache.properties

properties.UtilPropertiesResourceCache.expireTime=10000

The Debug.log() statements in the ContainerLoader then load the logging configuration properties file and cache it. If an expire time is set, the ExecutionPool is used and creates the "ofbiz-config-*" threads too early.

By not pre-starting the "ofbiz-config-*" threads in the static code (patch above), the threads are then created later on, when the "main" thread classloader has become the CachedClassLoader and everythings starts working again. 

jleroux: 
* I don't see any issues, but performance, to not start the whole core threads. This is BTW the default behaviour. So I'd recommend to use it for GLOBAL_EXECUTOR.
* I also removed the useless deprecated methods

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1435701 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 21:05:23 +00:00
Jacques Le Roux 99199dd213 https.www.ofbiz.it does not exist anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1435529 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 12:31:35 +00:00