Commit Graph
7592 Commits
Author SHA1 Message Date
Jacques Le Roux 606501012e Revert r1589562, it was not the origin of the issue Hans thought he crossed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1590630 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 13:31:11 +00:00
Adrian Crum 11d9b19b46 Improved some converters to strip the time-of-day from java.sql.Date values. This will help prevent JDBC drivers from changing the date when stored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1590301 13f79535-47bb-0310-9956-ffa450edef68
2014-04-26 21:28:07 +00:00
Adrian Crum e23b118575 Fixed a bug in ObjectTypeTests.java: The CachedClassLoader maps the "Date" class name to java.sql.Date, not java.util.Date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1590299 13f79535-47bb-0310-9956-ffa450edef68
2014-04-26 21:25:25 +00:00
Jacques Le Roux a6339f8cf9 A patch from Deepak Dixit for "Scale logo to fit content area in PDF which are based on simple decorator" https://issues.apache.org/jira/browse/OFBIZ-5006
Now logo image will be display over order pdf. Default value set in fop decorator not working properly, global set to true, Also added check in company header groovy, if logoImageUrl found in groovy then only set to context else default will be used.

Also set the logo width in company header fo.ftl as if logo image is large then it will throw warning related to content overflow on console.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589669 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 11:35:44 +00:00
Jacopo Cappellato 1ea8fe79b2 Fixes for a bug reported by Pierre Smits in OFBIZ-4130 (and OFBIZ-5319): a tenant user can access, via the delegator, the meta data information of other tenants; for example a tenant user with grants to use the Webtools application could view/edit the database details of all tenants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589589 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 05:19:13 +00:00
Hans Bakker 25312fa05c adminport in start.properties was ignored. fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589562 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 03:57:06 +00:00
Jacques Le Roux da391a7439 Removes deprecated link to ISO country codes (now paying)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589122 13f79535-47bb-0310-9956-ffa450edef68
2014-04-22 13:22:49 +00:00
Jacopo Cappellato c2fd23d0da Upgraded commons-pool to the latest bug fix only release.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1587841 13f79535-47bb-0310-9956-ffa450edef68
2014-04-16 09:38:26 +00:00
Adrian Crum 2973c29580 Fix for some Java versions that throw an exception when the String includes a "+". https://issues.apache.org/jira/browse/OFBIZ-5616
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1586987 13f79535-47bb-0310-9956-ffa450edef68
2014-04-13 14:01:17 +00:00
Adrian Crum f2799d6e72 Bug fix in ObjectTypeTests - a java.sql.Date instance created in one time zone is not equal to another instance created in another time zone.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585959 13f79535-47bb-0310-9956-ffa450edef68
2014-04-09 13:01:18 +00:00
Adrian Crum 0499098732 Modified the String to java.sql.Date conversion. Replace deprecated constructor call with a Calendar implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585958 13f79535-47bb-0310-9956-ffa450edef68
2014-04-09 12:55:00 +00:00
Adrian Crum 70a4757b4b Fixed a bug in rev 1585033. Reported by Gareth Carter on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585574 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 19:45:02 +00:00
Adrian Crum 9291e24ea4 Fixed a bug in String to java.sql.Date conversion. If the Date object includes time information, then the JDBC driver will adjust the date according to the default time zone - causing the wrong date to be stored in some circumstances.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585033 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 09:46:58 +00:00
Jacques Le Roux ff0730b8de Fixes a typo reported by Brett Palmer in user ML
Adds more info about DCC

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1584873 13f79535-47bb-0310-9956-ffa450edef68
2014-04-04 19:41:08 +00:00
Jacques Le Roux a5e8b8639a Complete r1583026, sequel of "Focus input(dropdown list) when click on label in widget form" https://issues.apache.org/jira/browse/OFBIZ-5594. Thanks to Wei Zhang's report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1584552 13f79535-47bb-0310-9956-ffa450edef68
2014-04-04 08:00:04 +00:00
Jacques Le Roux e9145b1592 A patch from Christian Carlow for "Include Thailand Province Geo data" https://issues.apache.org/jira/browse/OFBIZ-5607
This patch corrects three Thailand provinces added from the previous patch which unnecessarily had the word "PROVINCE" appended end of their names which looks messy.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583696 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 14:55:19 +00:00
Jacques Le Roux 3c11c513c0 A patch from Christian Carlow for "Include Thailand Province Geo data" https://issues.apache.org/jira/browse/OFBIZ-5607
This patch includes the CountryAddressFormat records for my Malaysia (OFBIZ-5606), Thailand, and Israel (OFBIZ-5609) geo issues.
Without this patch, the state/provinces do not appear in the dependent drop down form when adding party contact info.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583689 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 14:52:23 +00:00
Jacques Le Roux ca8ba60af9 A patch from Christian Carlow for "Add Israel geo data OOTB" https://issues.apache.org/jira/browse/OFBIZ-5609
While importing Israeli customer data from a legacy system I determined that OFBiz does not include Israel geo data OOTB which should be added.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583674 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 14:02:34 +00:00
Adrian Crum 191fd073b0 Fix for quirky user-selected time zone behavior. Changing the time zone in one session did not update other sessions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583663 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 13:32:12 +00:00
Jacques Le Roux e39e13009f A patch from Christian Carlow for "Include Thailand Province Geo data" https://issues.apache.org/jira/browse/OFBIZ-5607
I noticed that Thailand province geo data is missing OOTB while importing legacy data which should be added.

jleroux: as fort Malaysian geo data I have added the mean to load those seed data in the common/ofbiz-component.xml file

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583551 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 07:41:21 +00:00
Jacques Le Roux fdbb084a63 Completes commit r1583427
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583428 13f79535-47bb-0310-9956-ffa450edef68
2014-03-31 20:06:21 +00:00
Jacques Le Roux 59cc1c8bf5 A patch from Christian Carlow for "Include Malaysia GeoData OOTB" https://issues.apache.org/jira/browse/OFBIZ-5606
I determined that Malaysia GeoData does not exist OOTB while importing customer records from a legacy system so OFBiz should be improved to include it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583427 13f79535-47bb-0310-9956-ffa450edef68
2014-03-31 20:03:21 +00:00
Jacques Le Roux c045d83fa0 A patch from Deepak Dixit for "ofbizCurrency transform does not honor the rounding passed in ofbizCurrency macro." https://issues.apache.org/jira/browse/OFBIZ-5591
ofbizCurrency transform does not honor the rounding passed in ofbizCurrency macro. OfbizCurrency transform always used the default rounding set in general.properties file.

jleroux:I apply Deepak's patch,  seems good to me. If someone thinks there might be a better solution, please reopen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583040 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 18:42:06 +00:00
Jacques Le Roux f23822cdca A patch from Rong Nguyen for "Focus input(dropdown list) when click on label in widget form" https://issues.apache.org/jira/browse/OFBIZ-5594
The current widget form does not focus input(dropdown list) when a label is clicked on.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583026 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 16:49:02 +00:00
Christian Geisert c41847c829 Removed Frisian language (just three labels), see OFBIZ-5177
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1582122 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 23:38:24 +00:00
Jacques Le Roux 489877a44d Removes useless empty folders, adds README files with explanations in useful empty folders
This to facilitate the creation of Git repositories where empty folders needs a file in or must be ignored
Especially when you want to keep the OFBiz Subversion repository inside the Git repository (useful for committers)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1580865 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 14:42:52 +00:00
Scott Gray b463bdd84b Fix bug that causes a service to keep retrying after a deadlock occurs until lockRetriesRemaining reached zero
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1580620 13f79535-47bb-0310-9956-ffa450edef68
2014-03-23 21:41:57 +00:00
Jacques Le Roux f753f6f322 A patch from Pierre Smits for "israeli currency apear twice" https://issues.apache.org/jira/browse/OFBIZ-5586 (reported by Amit Cahanovich)
In the file ./framework/common/data/CurrencyData.xml there are two records for israeli currency ILS (israeli sheckel) and NIS (new israeli Shekel).
ILS record need to be removed, its was replaced by NIS 30 years a go.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1579309 13f79535-47bb-0310-9956-ffa450edef68
2014-03-19 17:41:40 +00:00
Jacques Le Roux 849bbb3c29 A patch from Antoine Vittecoq for "Form widget/ FTL pagination, Last does not take to last page" https://issues.apache.org/jira/browse/OFBIZ-5575
This issue in pagination can be tested in https://localhost:8443/partymgr/control/findparty (FTL) & https://localhost:8443/webtools/control/FindUtilCache?VIEW_SIZE_1=2&VIEW_INDEX_1=0 (XML Form).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1579277 13f79535-47bb-0310-9956-ffa450edef68
2014-03-19 16:15:22 +00:00
Jacopo Cappellato f537b94481 Minor change to avoid adding to the logs the empty error/failure lists (in case of no errors/failures).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1579240 13f79535-47bb-0310-9956-ffa450edef68
2014-03-19 14:34:03 +00:00
Jacques Le Roux 8860a9459d Fixes a bug introduced with r1574404 (forgot that shutdown and status historicaly have a prefixing dash), thanks to Youseek Khaye who spotted it and sent me a mail (the stop target was no longer working). I tested them only with a portoffset, my bad.
While working on this I spotted another error introduced earlier with r1533839. Now, status and stop work again as before. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1577744 13f79535-47bb-0310-9956-ffa450edef68
2014-03-14 22:20:34 +00:00
Jacques Le Roux ba28208c2f A patch from simon maskell for "Paginate in screen fails" https://issues.apache.org/jira/browse/OFBIZ-5574
When you use the paginate = true in a screen and the total number of rows returned is greater than 999 the string is formatted with a coma and an exception is thrown when trying to convert it to an Integer.

jleroux: this depends on language (French would be space) but Simon's fix works for all (we are only dealing with integers there)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1577268 13f79535-47bb-0310-9956-ffa450edef68
2014-03-13 18:23:47 +00:00
Jacques Le Roux bd6c3c7dad A slightly modified patch from Rong Nguyen for "Render multiMenu problem when linktype="hidden-form"" https://issues.apache.org/jira/browse/OFBIZ-5557
Scenario:
1. Go to Content webapp
2. Go to CompDoc menuitem
3. Search
4. Go to 'Tree' view
5. We can not use 'Up' and 'Down' function

When menu with linktype="hidden-form" was render for each menu, they has the same name for form element, so it cause error.
My solution is add extra attribute(extra-index) for Menu, and then in menu definition we provide this attribute and the forms with different name will be rendered.
My implement was tested in this bug for Content webapp

jleroux: I have simply amended the up and down labels to have them more legible. I'd have preferred to not have all uppercased, but ran out of time for such a trivial change


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576891 13f79535-47bb-0310-9956-ffa450edef68
2014-03-12 20:37:56 +00:00
Jacques Le Roux c74c991639 Thanks to Jacopo's comment on dev ML, reverts r1576331 to avoid injecting the web world in the form model, rather calls MacroFormRenderer.renderDateTimeField() method.
In my opinion a better solution would be to rewrite EditCalendarExceptionWeek and EditCalendarExceptionDay screens to replace the call to EditCalendarExceptionWeek.ftl by direct accesses to the form widgets called by it. 
But this means a lot more analysis and delicate work (here the replacement is safe), so this will be it for now.

This is for "View Calendar broken in Manufacturing" https://issues.apache.org/jira/browse/OFBIZ-5558 reported by Rong Nguyen 
Url: https://demo-trunk.ofbiz.apache.org:8443/manufacturing/control/EditCalendarExceptionDay?calendarId=SUPPLIER Calendar broken
And is related with https://issues.apache.org/jira/browse/OFBIZ-4739 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576506 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 21:25:25 +00:00
Adrian Crum ca759cf170 Fixed a bug in Mini-language where numeric constants were localized and converted wrong - https://issues.apache.org/jira/browse/OFBIZ-5281
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576430 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 17:04:35 +00:00
Jacques Le Roux e762ad9e0e A slightly modified patch from Rong Nguyen for "View Calendar broken in Manufacturing" https://issues.apache.org/jira/browse/OFBIZ-5558
Url: https://demo-trunk.ofbiz.apache.org:8443/manufacturing/control/EditCalendarExceptionDay?calendarId=SUPPLIER
Calendar broken

Related with https://issues.apache.org/jira/browse/OFBIZ-4739

jleroux: formatting and some other slight issues fixed in patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576331 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 13:26:10 +00:00
Jacques Le Roux d16055c9cc With https://issues.apache.org/jira/browse/OFBIZ-64 the default option for text-find fields was like (aka begins with, don't ask why)
Then with https://issues.apache.org/jira/browse/OFBIZ-3128 contains became the default
But this was working only when defining a text-field. When auto-fields-entity (and I guess auto-fields-service, not tested) was used then like/begins-with was still the default.

This commit changes that and makes things consistent: contains is now always used and set as default everywhere (no longer need to specify the text-field when using auto-fields-* to have contains as default)

Note: I'm not quite sure why like/begins-with was still used as default, since it was no longer the default in widget-form.xsd, but anyway making contains default there works. Also in ModelFormField.java to have things consistent

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576276 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 10:49:31 +00:00
Adrian Crum c63f91c75b GenericEntity.java bug fix, updated the unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1575589 13f79535-47bb-0310-9956-ffa450edef68
2014-03-08 18:48:35 +00:00
Jacques Le Roux 4d71caff21 Fixes a bug reported by Rong Nguyen "Error when first login and change password" https://issues.apache.org/jira/browse/OFBIZ-5564
Scenario:
 1. Load-seed
 2. Create-admin-user
 3. Access: /catalog/control/main
 4. Login
 5. Change password for the first use
 
After password change, web browser redirect user to /catalog/control/main with an error

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1575508 13f79535-47bb-0310-9956-ffa450edef68
2014-03-08 10:55:39 +00:00
Jacques Le Roux 1e99cffcb1 Completes descriptions of ant targets which have portoffset parameter
Completes code in Config.java for start-debug only (adds "start-debug" to pick start.properties when portoffset is used). 
The rest of the changes is only refactoring to have the replacement to pick start.properties only in getInstance()

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574404 13f79535-47bb-0310-9956-ffa450edef68
2014-03-05 09:46:26 +00:00
Jacques Le Roux ae2d3dedf3 Running OFBiz with start-batch, stopping it then or checking its status was missing, this completes these aspects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574201 13f79535-47bb-0310-9956-ffa450edef68
2014-03-04 21:02:13 +00:00
Jacques Le Roux 0f80353735 A patch from Leila Mekika for "Problems in single form when use-when and position are used together" https://issues.apache.org/jira/browse/OFBIZ-5552
The service "renderSingleFormString" check the previous field position to see if the current field must be displayed after the previous field or on a new line. 

When the previous field has a use-when condition that is not valid, it remains as the currentFormField and the next field is compared with this "not rendered" field. If the position of this previous field is the same as the current field, the current is displayed on the next line.


To reproduce, add in a single form the three fields below :

<field position="1" name="first"><display description="first"/></field>
<field position="2" name="second" use-when="true"><display description="second"/></field>
<field position="2" name="second" use-when="false"><display description="second"/></field>

The field second is rendered on a new line

jleroux: this second version works correctly

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574019 13f79535-47bb-0310-9956-ffa450edef68
2014-03-04 10:37:01 +00:00
Jacques Le Roux 2f430df170 While at it (OFBIZ-4953), considering the current effort to remove Javolution use when possible, I have replaced few
FastList.<EntityExpr>newInstance(); 
by 
  new ArrayList<EntityExpr>();



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573647 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 18:13:20 +00:00
Jacques Le Roux e28ab6bda6 Revert r1573161 (A patch from Leila Mekika for "Problems in single form when use-when and position are used together" https://issues.apache.org/jira/browse/OFBIZ-5552)
This had some side effects, like hiding the top part of the product edit screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573498 13f79535-47bb-0310-9956-ffa450edef68
2014-03-03 09:49:34 +00:00
Jacques Le Roux d79ae78453 A patch from Leila Mekika for "Problems in single form when use-when and position are used together" https://issues.apache.org/jira/browse/OFBIZ-5552
The service "renderSingleFormString" check the previous field position to see if the current field must be displayed after the previous field or on a new line. 

When the previous field has a use-when condition that is not valid, it remains as the currentFormField and the next field is compared with this "not rendered" field. If the position of this previous field is the same as the current field, the current is displayed on the next line.


To reproduce, add in a single form the three fields below :

<field position="1" name="first"><display description="first"/></field>
<field position="2" name="second" use-when="true"><display description="second"/></field>
<field position="2" name="second" use-when="false"><display description="second"/></field>

The field second is rendered on a new line

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573161 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 12:15:33 +00:00
Jacopo Cappellato 7d8d938a3b Performance optimization for UtilHttp.getFullRequestUrl method: instead of returning a StringBuffer object (synchronized) it now returns a String (immutable); internally it uses a StringBuilder (lighter because not synchronized) within a private context.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570810 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 08:32:28 +00:00
Jacopo Cappellato 0bf26e2829 Upgraded code to avoid a warning for a deprecated Tomcat class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570641 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 17:12:29 +00:00
Jacopo Cappellato db1d807f07 Upgrade to Tomcat 7.0.52 (latest bug fix release). I have used the standard release and not the "embedded" version after I have realized (from a conversation with Mark Thomas @ Tomcat and then directly checking the content of each jar) that the embedded jars contain also the J2ee apis that we already have in the OFBiz classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570639 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 17:09:19 +00:00
Jacopo Cappellato 0fcd1d38b1 Removed unnecessary jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570622 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 16:29:53 +00:00
Jacopo Cappellato 52ee5728a4 Upgraded JUEL to 2.2.7 using EL specification 2.2.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570611 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 15:48:26 +00:00