Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 44868190ac Fixes "XML file containg Byte order mark" reported by Youssef Khaye at https://issues.apache.org/jira/browse/OFBIZ-5099
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1421662 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 04:13:02 +00:00
Jacques Le Roux b7192d8409 At Adrian and Adam's request, allow to use cache here, use default constructor
Also refactored things a bit: 
* uses getPropertyAsBoolean
* set default property values

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1421651 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 03:27:40 +00:00
Hans Bakker dbb32b4886 make reserved hotel rooms appear on the fixed asset calendar
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1420569 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 08:34:23 +00:00
Jacques Le Roux 7f9fe782e3 Fixes "Flatgrey visual theme does not work" https://issues.apache.org/jira/browse/OFBIZ-5096 reported by Wai and pointed out by Adrian in dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1420019 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 07:31:40 +00:00
Jacques Le Roux 03a62ac947 A slightly modified patch from Sumit Pandit for "Additional Validation for Password : Make password pattern driven" https://issues.apache.org/jira/browse/OFBIZ-4958
Provides an additional validation for password  with following capability to the system:

Admin can enable/disable pattern based password capability of system. Configuration will reside in security.property file.
 To enable : security.login.password.pattern.enable=true
 To disable: security.login.password.pattern.enable=false

Admin is flexible to provide his pattern string by making pattern more/less restrictive as per system requirement. Configuration will reside in security.property file.
 Example: security.login.password.pattern=^.*(?=. {5,})(?=.[a-zA-Z])(?=.[!@#$%^&*]).*$

Admin can provide custom error message string which will display to end user if wrong password is entered. Configuration will reside in security.properity file.

jleroux: I quickly handled the error message localisation for the OOTB case. It's more complicated when the pattern gets complex...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418996 13f79535-47bb-0310-9956-ffa450edef68
2012-12-09 14:59:52 +00:00
Scott Gray 04df9cb162 Add a bunch of missing Override annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418651 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:06:40 +00:00
Scott Gray 0af4184d61 Remove a bunch of unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418650 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:06:01 +00:00
Scott Gray f180a447c7 Remove redundant implements declarations where the interface is already implemented by the base class
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418649 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:04:37 +00:00
Scott Gray 410436ad8a Remove unused variable, looks like a leftover from an iteration to enhanced for lopp conversion
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418647 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:04:18 +00:00
Scott Gray 5df3e3f70b Remove a bunch of unused imports, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418646 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:03:52 +00:00
Scott Gray b9aba41be6 Add missing deprecated annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418645 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:02:14 +00:00
Jacques Le Roux 415ccfc4cc This closes OFBIZ-4833 - Housekeeping of jar files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417329 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 09:29:07 +00:00
Adam Heath bca838aa2a OPTIMIZE: Now that absolute() does the correct thing for 0, fix
getPartialList() to use absolute(start - 1), instead of working around
the bug itself.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417213 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 21:54:49 +00:00
Adam Heath 9c7c925a4c OPTIMIZE: Remove the use of numRetrieved as a check to see how much has
been fetched.  Either list.size() could be used, or, even better, just
decrement the number wanted, and continue until everything is fetched.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417212 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 21:54:42 +00:00
Adam Heath 7228abe497 TYPO: s/numRetreived/numRetrieved/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417211 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 21:54:35 +00:00
Adam Heath fc81ed5fb1 FIX: Some jdbc drivers don't like absolute(0), even though this is
allowed.  As such, call beforeFirst() instead.  Technically, these
broken jdbc drivers should have the same kind of work-around.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1417210 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 21:54:28 +00:00
Jacopo Cappellato 1d8613008b Removed reference to the deprecated document in Wiki: https://cwiki.apache.org/confluence/display/OFBADMIN/Libraries+Included+in+OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416861 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 10:08:18 +00:00
Jacopo Cappellato 9c680f2362 Added reference for Log4j jar in LICENSE file (OFBIZ-4833).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416815 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 08:34:27 +00:00
Jacopo Cappellato 4c88c2cef9 Updated name of SLF4J jar in LICENSE file (OFBIZ-4833).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416813 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 08:27:16 +00:00
Jacques Le Roux 7d40e16168 Put some jars in LICENSE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416798 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 07:47:50 +00:00
Jacopo Cappellato a17e2d812b Fixed code that was broken a lot of time ago by commit 883226; this prevented the (seldom used) screen.use-cache attribute to work properly. Thanks to K Sharad Bhushan for the patch (OFBIZ-5080).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416497 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 13:05:39 +00:00
Jacopo Cappellato f6244c689f Trivial fixes for some typos in Java comments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416451 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 11:15:44 +00:00
Jacques Le Roux e119c99039 Put some jars in LICENSE. They were introduced with Docbook update to version 1.77.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416376 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 08:19:24 +00:00
Jacques Le Roux 2edfa352a2 saxon65.jar was missing in LICENSE (was committed with the update docbook to version 1.77.1 at r1395298)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416375 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 08:11:58 +00:00
Jacques Le Roux b6d7e26fe1 A patch from Carsten Schinzer for "Typo in new party-entitymodel" https://issues.apache.org/jira/browse/OFBIZ-5090
The entitymodel.xml for party contains a typo on agreement_facility_appl: it refers to faciliyId instead of facilityId.
This needs urgent fixing as otherwise any DB build done with the wrong definition will generate errors (as the reference is part of a constraint).



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416366 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:34:29 +00:00
Jacques Le Roux 5d645e4810 This can't work for now because in r1416358 I removed the yuicompressor from OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416364 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:30:22 +00:00
Jacques Le Roux 8f275867f9 I missed those in r1412997
A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
Complete Japanese translation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416360 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:16:35 +00:00
Jacques Le Roux e6ede1ca2e Reverts r1310983 (related to https://issues.apache.org/jira/browse/OFBIZ-4792 )for 2 reasons:
* I missed to put in LICENSE and NOTICE
* It's an issue for Birt, see OFBIZ-5070


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416358 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:02:38 +00:00
Adam Heath 1b77ee4991 Add (create|update|delete)FacilityAttribute services using
engine=entity-auto.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1415856 13f79535-47bb-0310-9956-ffa450edef68
2012-11-30 21:24:32 +00:00
Adam Heath 12934702ec Add AgreementFacilityAppl entity and screens. There is no code that
deals with the data yet, however.  This is modeled after
AgreementProductAppl minus the price.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413810 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 20:09:17 +00:00
Adam Heath d3bd1694c2 Ignore generated -min.(css|js) files in flatgrey.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413809 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 20:08:58 +00:00
Sascha Rodekamp ce90d2929e Replace all getIdName() calls in the MacroFormRenderer class with the central method getCurrentContainerId from the ModelFormField class. This method uses now the FlexibleStringExpander that makes the form widgets able to interpret ${} variables in the id fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413492 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 07:34:56 +00:00
Jacques Le Roux 6dc2929e10 A patch from Sergei Biletnikov "Remote services via XMLRpc ignore the locale which is passed as the service parameter, the default locale is used forever" https://issues.apache.org/jira/browse/OFBIZ-5083
This code replaces the possible locale from parameters by default locale.

// add the locale to the context
context.put("locale", Locale.getDefault());

The solution is simple: firstly check, if we have the locale as the parameter, if no, use the default locale.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413307 13f79535-47bb-0310-9956-ffa450edef68
2012-11-25 09:20:23 +00:00
Jacques Le Roux ecd2de6362 A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
Completed Japanese translation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1412997 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 17:35:16 +00:00
Jacopo Cappellato 6565a78ee0 OFBIZ-5072 Committed slightly different version of the patch contributed by Rene Frauli: the delegator, dispatcher and security objects are required in the session in multitenant mode.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1411196 13f79535-47bb-0310-9956-ffa450edef68
2012-11-19 14:25:55 +00:00
Jacopo Cappellato 27e1c2cddf Moved debian tools to Attic.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1409880 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 16:50:54 +00:00
Jacques Le Roux db0841345b A patch from Nicolas Malin for "ProjectMgr : list project's company, error on form to resolve currency" https://issues.apache.org/jira/browse/OFBIZ-5071
To solve this issue, I change bsh script to groovy script.
After the patch application, on the same page, the currency appears near "Your Company Name Here [Company]"

jleroux: actually I did a bit more and rewrote it using safe-navigation and elvis operator, nice to read hèè ;)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1408408 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 18:59:38 +00:00
Scott Gray 3d16a02b3f Remove unnecessary null checks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407940 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 11:14:52 +00:00
Scott Gray ffe232ec17 Remove unnecessary null check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407939 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 11:14:44 +00:00
Adrian Crum 417a8c1d4e Screen widget XML schema cleanup first pass: remove unnecessary attribute groups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407843 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 16:07:58 +00:00
Adrian Crum 91e7eba820 Minor improvement to the Flat Grey theme - style JQuery so it matches the rest of the screen. This still needs the ui-icons*.png files updated, but I don't have the tools to do that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407740 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 10:21:35 +00:00
Anil Patel d746bcc3eb [OFBIZ-5063] Stock Move is not working correctly when reservation record has quantity not available value at bulk location. Thanks Albert Mayo and Amardeep for working on fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407634 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 21:06:26 +00:00
Jacques Le Roux f7b662bc46 A patch from Nicolas Malin for "Entity-Auto Engine : manage [create|lastModified]Date field" https://issues.apache.org/jira/browse/OFBIZ-5010
When a entity have fields createDate, lastModifiedDate, createByUserLogin and updateByUserLogin, the entity-auto engine set them.

Also makes all entities that have one of fields [create|lastModified][Date|ByUserLogin] to be consistent and have four fields

Impacted entityies:

    [Quote|Order|Return]Adjustment
    OrderPaymentPreference
    AcctgTrans
    GlReconciliation
    ValueLinkKey


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407578 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 18:26:19 +00:00
Adrian Crum 8973e51b8c Flat Grey theme fixes - added missing images, removed JQuery font.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407417 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 10:38:48 +00:00
Adrian Crum ac537e5ac7 Flat Grey theme enhancement - minify JS and CSS files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407413 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 10:22:47 +00:00
Adrian Crum c50c86f405 Added capability to include visual themes in the build.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407349 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 03:58:16 +00:00
Jacques Le Roux 57845a44b7 I missed this in r1407116 for https://issues.apache.org/jira/browse/OFBIZ-3883
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407142 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 15:55:46 +00:00
Jacques Le Roux 3a7f4e320d An enhanced patch from John McDonald for "Customer's Shipment Address Not Assigned to Dropship Purchase Orders" https://issues.apache.org/jira/browse/OFBIZ-3883
When buying drop ship products from the demo store the customer's shipping address is not saved with the purchase order, so the shipping address cannot be provided to the drop ship supplier. 

Steps to Reproduce:
* From the DropShip Category add "DropShip from BigSupplier" and "DropShip from DemoSupplier" to your cart. 
* Login as admin
* Use the one page checkout to order the products

Resulting Order: 
https://demo-trunk.ofbiz.apache.org:8443/ordermgr/control/orderview?orderId=WSCO10002
The purchase orders WS10003 and WS10004 are associated correctly with the order items, but as the shipping groups don't have addresses, the purchase orders don't have either.

Expectation:
All Shipment groups should have the shipping address assigned.

Actual:
Only the first shipment group has the shipping address assigned. 


jleroux: thanks to Paul Foxworthy's help I rather removed than deprecate the old methods and replaced them where relevant

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407116 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 15:15:04 +00:00
Scott Gray d8dcd7e690 Correct operation to determine if the expiry date is an even number in the badExpireEvenProcessor method, was using divide instead of modulo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407002 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 10:38:50 +00:00
Jacques Le Roux 3717bc137b A patch from Leon for "slight update to ShoppingCartEvents.loadCartFromQuote to avoid NPE exception" https://issues.apache.org/jira/browse/OFBIZ-5068
There's a quote within that one product has been released and no valid price set. If try to create order from this quote, NPE exception raised.

=> Check the result return from runSync("loadCartFromQuote")

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1406727 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 17:36:07 +00:00