Adrian Crum
e5fcf293ae
Merged revision(s) 1635411 from ofbiz/branches/boostrap_theme:
...
MacroScreenViewHandler.java improvement: get macro library locations from Visual Theme resources. Themes can create their own HTML now.
resourceTypeEnumId=VT_SCRN_MACRO_LIB - screen macro library location
resourceTypeEnumId=VT_FORM_MACRO_LIB - form macro library location
resourceTypeEnumId=VT_TREE_MACRO_LIB - tree macro library location
resourceTypeEnumId=VT_MENU_MACRO_LIB - menu macro library location
Merged revision(s) 1635465 from ofbiz/branches/boostrap_theme:
Fix ClassCastException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648013 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 19:06:30 +00:00
Ashish Vijaywargiya
bb98fc4e7e
Applied patch from jira issue - OFBIZ-5385 - Purchase order immutable/unchangeable errors when adding variant products.
...
In this changes Arun has taken care of cloning related concern raised by Adrian. Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647946 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 09:45:01 +00:00
Ashish Vijaywargiya
d267053dc7
Applied two patch files from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods. Thanks Arun for your recent contribution where you have included changes from specialpurpose and product component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647937 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:54:50 +00:00
Adrian Crum
124b003d0d
Rewrite ModelFormField.java and related classes. Most of this is thread-safe now. Implemented a builder design because the original ModelForm design makes several passes over the fields - modifying them incrementally. Now ModelForm modifies builders instead, then when the parsing process is complete, the builders create the thread-safe field models.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647936 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:47:13 +00:00
Ashish Vijaywargiya
f0d8ad47fd
Applied patch from jira issue OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods.
...
Fixing Typo, And also adding missing import statement. Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647935 13f79535-47bb-0310-9956-ffa450edef68
2014-12-26 06:43:25 +00:00
Adrian Crum
9be5ed5e06
UtilMisc.java improvements:
...
1. Replace DCL code with lazy-initializer class.
2. Small code cleanup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647873 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 05:41:13 +00:00
Adrian Crum
fc86aee024
UtilProperties.java improvements:
...
1. Replace DCL code with lazy-initializer class.
2. Remove class name from static method calls.
3. Remove some @Deprecated annotations.
When they were written, the deprecated methods simulated forthcoming Java 6 functionality - with the intent that they would be replaced with Java 6 equivalents, but the Java 6 functionality behaves differently than the deprecated methods. So, replacing the deprecated methods with Java 6 equivalents would cause undesired behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647866 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 00:45:18 +00:00
Adrian Crum
06b7bcbb8b
UtilDateTime.java improvements:
...
1. Replace DCL code with lazy-initializer class.
2. Remove class name from static method calls.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647861 13f79535-47bb-0310-9956-ffa450edef68
2014-12-24 23:37:06 +00:00
Adrian Crum
6731e764ef
Bug fix: Make DateRange.java truly immutable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647839 13f79535-47bb-0310-9956-ffa450edef68
2014-12-24 20:21:46 +00:00
Adrian Crum
209a0261fb
Remove references to immutability from ComparableRange.java - because its contained objects might be mutable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647838 13f79535-47bb-0310-9956-ffa450edef68
2014-12-24 20:19:42 +00:00
Jacques Le Roux
464fd93aec
Implements "Improve the way FOP handles fonts notably for currency symbols" https://issues.apache.org/jira/browse/OFBIZ-5917
...
Adds
<auto-detect/>
in the fonts section of our fop.xconf
Adds the Google NotoSans font which is Apache licensed
* http://www.google.com/fonts/specimen/Noto+Sans
* https://www.google.com/get/noto/#/
Uses NotoSans as the default FOP font. For that puts the NotoSans font 4 files in framework/resources/fonts and add <directory>framework/resources/fonts/NotoSansFonts</directory> in fop.xconf
Renders ₹ in content/control/fonts.pdf as we do for €. Other symbols could be added later when needed, backed by Google NotoSans font...
Renders the NotoSans content/control/fonts.pdf as we do for other main fonts
Adds the rupee symbol (₹) to antisamy-esapi.xml file like we have the euro symbol (€)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647782 13f79535-47bb-0310-9956-ffa450edef68
2014-12-24 13:45:03 +00:00
Adrian Crum
7aa7ea5769
Fixed a bug in UtilDateTime.java where SimpleDateFormat instances were not initialized with the locale.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647606 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 16:21:14 +00:00
Jacques Le Roux
9275586f87
French translation for r1609184
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647559 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 11:50:12 +00:00
Jacques Le Roux
3ca40543d5
Revert r1647522. This is not the right solution said Scott on dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647542 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 11:06:32 +00:00
Jacques Le Roux
9f55c4a001
A patch from Prateek Ashtikar for "Issue reported while performing Refund & Void (java.lang.ClassCastException: java.lang.String cannot be cast to java.math.BigDecimal)" https://issues.apache.org/jira/browse/OFBIZ-5927
...
Change committed in AIMPaymentServices.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647522 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 09:51:56 +00:00
Jacques Le Roux
b1de6b8bb2
Fixes a missing .from("CustomTimePeriod") in EntityQuery
...
Small formatting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647490 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 06:43:36 +00:00
Jacques Le Roux
6dc36838cd
A patch from Christian Carlow for "Production Run Content button throws unable to resolve class GenericValue error" https://issues.apache.org/jira/browse/OFBIZ-5923
...
The GenericValue class needs to be imported for resolution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647338 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 16:02:48 +00:00
Ashish Vijaywargiya
eb881e513f
Applied patch from jira issue - OFBIZ-5922 - Edit product catalog text "ProductCatalogEmptyWarning" require grammatical correction.
...
Thanks Ejaz for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647311 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 13:23:18 +00:00
Ashish Vijaywargiya
74e2175dd1
Applied patch from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods.
...
Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647310 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 13:20:03 +00:00
Jacopo Cappellato
4384b31ed9
Removed two unnecessary overloaded methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647289 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 11:08:07 +00:00
Jacques Le Roux
b567828392
A patch from Anahita Goljahani for "EntityListIterator closing issue with EntityQuery.queryCount() when using DinamicViewEntity" https://issues.apache.org/jira/browse/OFBIZ-5921
...
When using the queryCount() method of EntityQuery with a DinamicViewEntity, I get an error message about the EntityListIterator not being closed.
This properly closes the EntityListIterator
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647275 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 10:01:53 +00:00
Jacopo Cappellato
99b7f462f2
Refactoring of Visit/Visitor/ServerHit* (and related) entities in order to be able to maintain them in a database separate from the main transactional database:
...
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:19:33 +00:00
Jacques Le Roux
4ebf9fda0e
A patch from Deepak for "Incorrect use of if-has-permission tag" https://issues.apache.org/jira/browse/OFBIZ-5920
...
Deepak: here is the patch for this issue, found some more places where if-has-permission tag used in different way, will create a new ticket to fix the if-has-permission tags and will used the consistent pattern.
jleroux: I wonder if this commit does not fix some other already reported issues, anyway it's good!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647266 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:13:12 +00:00
Ashish Vijaywargiya
4656af219d
Based on Adrian's comment on Dev list removing the ternary operator check which was not needed actually.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647239 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 05:04:18 +00:00
Jacques Le Roux
936e72817e
Completes "Deprecate doCacheClear in Delegator interface and class and related minilang classes" https://issues.apache.org/jira/browse/OFBIZ-5325
...
Removes useless deprecated things in trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647132 13f79535-47bb-0310-9956-ffa450edef68
2014-12-21 12:47:38 +00:00
Jacques Le Roux
6d87f5bdf5
A patch from Divesh Dutta for "Inventory Transfer Printing Format and Layout" https://issues.apache.org/jira/browse/OFBIZ-4673
...
Adds PDF (fo.ftl file) which will be opened when user click on "Print" button. Earlier web page was opened with bad formatting. New PDF is clean.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647102 13f79535-47bb-0310-9956-ffa450edef68
2014-12-21 07:43:55 +00:00
Ashish Vijaywargiya
1a5feb6284
Applied patch from jira issue - OFBIZ-4159 - subscription resources page not alinged properly.
...
Thanks BJ for creating the issue, Thanks Divesh for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647001 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 14:56:55 +00:00
Ashish Vijaywargiya
ed26dd4dc4
Applied patch from jira issue OFBIZ-4946 - Getting error when uploading a file after creating a data resource.
...
Thanks Ashish Ambulkar for creating the issue. Thanks Arun, Jacques for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646984 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 14:22:50 +00:00
Ashish Vijaywargiya
1c4dce1187
Applied patch from jira issue - OFBIZ-223 - CartShipInfo objects are not properly cloned when shopping cart items are exploded.
...
Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646977 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 13:38:06 +00:00
Ashish Vijaywargiya
917b658f69
Applied patch from jira issue - OFBIZ-5696 - Main page doesn't show organisation tree in HumanRes.
...
Thanks Pierre for reporting the issue. Thanks Deepak for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646975 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 13:18:55 +00:00
Ashish Vijaywargiya
c572355faf
Applied patch from jira issue OFBIZ-5313 - Tree rendering is missing labels.
...
Thanks Sumit for creating the issue and providing the patch for the same. Thanks Arun for verifying the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646969 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 12:37:07 +00:00
Ashish Vijaywargiya
9e9187ecb3
One minor fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646967 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 12:28:28 +00:00
Ashish Vijaywargiya
72f6db3ffa
Applied patch from jira issue OFBIZ-5385 - Purchase order immutable/unchangeable errors when adding variant products.
...
Thanks Christian for reporting the issue. Thanks Arun for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646966 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 12:25:10 +00:00
Ashish Vijaywargiya
4bbbf895a8
Applied patch from OFBIZ-4511 - Non-standard markup for categories screenlet.
...
Thanks Anne for creating the issue and providing the first patch. Thanks Arun for providing the updated patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646944 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 10:23:47 +00:00
Ashish Vijaywargiya
bc78f8985d
Applied patch from jira issue - OFBIZ-4558 - Verify subscription email requires form submit.
...
Thanks Kiran for creating the issue, Thanks Deepak for provding the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646943 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 10:09:52 +00:00
Ashish Vijaywargiya
4c864b8047
Applied patch from jira issue - OFBIZ-5685 - Setting a dependent question for question of type 'Boolean Yes/No' is not possible.
...
Thanks Deepak for the contribution. Thanks Pierre for creating the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646939 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 09:50:35 +00:00
Ashish Vijaywargiya
6b1cc4e52b
Minor improvement in conditional check.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646937 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 09:42:41 +00:00
Jacques Le Roux
0a3709f995
Due to r1646666 I found an issue in the tests I have for a custom project.
...
This line
itemStatus.set("statusUserLogin", userLogin.get("userLogin"));
should be
itemStatus.set("statusUserLogin", userLogin.get("userLoginId"));
I must say having named the OrderStatus.statusUserLogin field instead of OrderStatus.statusUserLoginId did not help in the 1st place
This was initially committed in
trunk r1618378
R13.07 r1618379
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646935 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 09:30:39 +00:00
Ashish Vijaywargiya
30b9b75df7
Applied patch from jira issue - OFBIZ-4360 - Content is getting public to web search engine no privacy.
...
Thanks Deepak for the contribution. Thanks patrick LE BLAN for creating the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646934 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 09:26:21 +00:00
Ashish Vijaywargiya
94a1000fcc
Applied patch from jira issue - OFBIZ-5482 - Create Production Run RoutingId lookup field dropdown results empty.
...
Thanks Arun for the contribution. Thanks Christian for creating the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646930 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 09:12:46 +00:00
Ashish Vijaywargiya
5ceb7d4d7a
Applied patch from jira issue - OFBIZ-5767 - WebShoppingCart ignores session currency.
...
Thanks Josip Almasi for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646926 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 08:36:26 +00:00
Ashish Vijaywargiya
0877607603
Bug fix, one small conditional check got missed in OFBIZ-5844 - Convert java files to EntityQuery.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646917 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 05:48:51 +00:00
Ashish Vijaywargiya
682d5e14c8
Applied all the patch files from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods.
...
Thanks so much Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646916 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 04:31:20 +00:00
Jacopo Cappellato
21dda83a53
Fixed a few unit tests that were failing due to recent updates for EntityQuery calls.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646787 13f79535-47bb-0310-9956-ffa450edef68
2014-12-19 16:13:08 +00:00
Jacques Le Roux
5e6077d737
Adds the rupee symbol (₹) to antisamy-esapi.xml like we have the euro symbol(€)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646781 13f79535-47bb-0310-9956-ffa450edef68
2014-12-19 15:56:21 +00:00
Jacopo Cappellato
f9d619b103
OFBIZ-5004: an IllegalArgumentException is thrown if an attempt to select an invalid field is performed; the code was just logging a warning message. Thanks to Christoph Neuroth, Adrian Crum, Paul Foxworthy, Scott Gray, Jacques Le Roux, Adam Heath for their valuable feedback and comments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646666 13f79535-47bb-0310-9956-ffa450edef68
2014-12-19 10:54:13 +00:00
Jacques Le Roux
73e1958d50
No functional changes
...
Removes a tab found by chance.
My Eclipse setting automatically adds Override annotations when needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646656 13f79535-47bb-0310-9956-ffa450edef68
2014-12-19 09:35:55 +00:00
Jacques Le Roux
fc6eba04eb
Reverts part of r1645950, thanks to Scott who spotted it
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646546 13f79535-47bb-0310-9956-ffa450edef68
2014-12-18 21:48:44 +00:00
Ashish Vijaywargiya
45a5e7da6c
Reverting one small change from r1646167, It seems that runService doesn't work with runAsync method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646447 13f79535-47bb-0310-9956-ffa450edef68
2014-12-18 12:58:00 +00:00
Ashish Vijaywargiya
80687f8fc2
Minor fix that got missed in 1646212.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646433 13f79535-47bb-0310-9956-ffa450edef68
2014-12-18 10:34:14 +00:00