Erwan de Ferrieres
42fea3f319
A patch from Charles STELTZLEN - OFBIZ-4442 - French translation missing in portal pages management
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1174274 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 17:34:27 +00:00
Hans Bakker
f6485781ee
create website within productstore did not work: OFBIZ-4428
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1174036 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 09:59:25 +00:00
Sascha Rodekamp
841c09a114
FIX: A bug reported by Kiran Gawde: The dependent drop down list for countries and states didn't work. I fixed an error in the entitymodel definition for the GeoAssocAndGeoToWithState View-Entity ( https://issues.apache.org/jira/browse/OFBIZ-4437 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173996 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 08:52:34 +00:00
Hans Bakker
cea83127a0
correcting the ordering of loading the data for tenants
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173994 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 08:28:59 +00:00
Sascha Rodekamp
89c629e922
OnePageCheckout should reuse UpdateCart while first time rendering ( https://issues.apache.org/jira/browse/OFBIZ-4436 ) A patch from Kiran Gawde which reuses the UpdateCart Screen in the OnePageCheckout to avoid code duplication.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173975 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 07:35:09 +00:00
Hans Bakker
d2617ff344
make the response to ./stopofbiz.sh more userfriendly
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173944 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 03:15:21 +00:00
Sascha Rodekamp
082526b9de
FIX: Wrong use of toArray() method ( https://issues.apache.org/jira/browse/OFBIZ-4425 ). A patch from Dimitri Unruh which replaces Array Casts with a propper call of the toArray method.
...
String[] temp = (String[]) foo.toArray(); <-- may cause class cast exception it is better to use: String[] temp = foo.toArray(new String[foo.size()])
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173607 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 12:53:35 +00:00
Sascha Rodekamp
77535dd220
FIX: Impossible ClassCast ( https://issues.apache.org/jira/browse/OFBIZ-4421 ) A fix from Dimitri Unruh: The FeatureSetConstraint cast will always throw a ClassCastException. The patch fixes the instanceof if condition.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173596 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 12:38:53 +00:00
Sascha Rodekamp
16e6a8fef2
FIX: Using equals() with different object types ( https://issues.apache.org/jira/browse/OFBIZ-4422 ). A patch from Dimitri Unruh which fixes the equals method of the RunningService class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173592 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 12:29:52 +00:00
Sascha Rodekamp
b350987ef6
EntityListIterator not being closed after storing incoming email ( https://issues.apache.org/jira/browse/OFBIZ-4424 ). A slightly modified patch from Varun Bhansaly which closes the entity Iterator after use: CommunicationEventServices.buildListOfWorkEffortInfoFromEmailAddresses() does not close the entity list iterator resulting in error messages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173518 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 07:31:11 +00:00
Adrian Crum
e341923a6a
Small JavaDoc fixup for my last commit - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173047 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 09:26:27 +00:00
Hans Bakker
ca49c2fbc3
show communications of the party of the opportunity the same organization as the opportunity itself
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172990 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 06:25:58 +00:00
Hans Bakker
b64da95ceb
add 2 new tenant ant commands to load seed/demo data for a specific tenant only: './ant run-install-tenant -DtenantId' and './ant run-install-tenant-all' for all tenants in the tenant enttity
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172989 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 06:23:02 +00:00
Hans Bakker
08c011b435
enable to add a rental product to the shopping cart...was disabled in history somehow...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172967 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 03:53:32 +00:00
Hans Bakker
af7af5e39c
update service product implementation now more generalized as per comment from Scott
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172965 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 03:51:08 +00:00
Adrian Crum
4b7cd7434a
Changed the screen widget boundary comment behavior per a discussion on the dev mailing list. Setting the widget.properties file widget.verbose property to false now acts like a "master switch" to turn off all widget boundary comments - it ignores all other settings. If the property is set to true, then the setting can be overridden in web.xml or in the screen context.
...
This commit also removes the demonstration widgetVerbose setting in the Example component's web.xml file - which caused some confusion, and it comments out the setting in the web.xml file that is used for creating new components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172954 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 02:55:44 +00:00
Jacques Le Roux
4711b7a1c5
A slightly modified patch from Dimitri Unruh "Minor code style improvement" https://issues.apache.org/jira/browse/OFBIZ-4400
...
I forgot the services.xml file in r1172342
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172344 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 20:52:34 +00:00
Jacques Le Roux
480435601f
A slightly modified patch from Dimitri Unruh "Minor code style improvement" https://issues.apache.org/jira/browse/OFBIZ-4400
...
In the createJsLanguageFileMapping service, the catch blocks have assigns to a local variable in a return statement.
Simplified further on Adrian's advice.
jleroux: I have also organized imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172342 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 20:48:27 +00:00
Jacques Le Roux
f844f47dff
Fixes 'Create Product in Category' button cause exception https://issues.apache.org/jira/browse/OFBIZ-4408 reported by Wai
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172297 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 15:35:45 +00:00
Jacques Le Roux
ca398bfc9c
Fixes "QuickCheckout -> New Address -> Back functionality doesn't work" reported by Kiran Gawde https://issues.apache.org/jira/browse/OFBIZ-4411
...
Same fix than http://svn.apache.org/viewvc?rev=981288&view=rev for OFBIZ-3432. I guess the quirks were introduced by http://svn.apache.org/viewvc?rev=749979&view=rev
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172243 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 10:43:17 +00:00
Jacques Le Roux
d8eb4f7634
A patch from Varun Bhansaly "Issue receiving emails with attachment" https://issues.apache.org/jira/browse/OFBIZ-4413
...
Some Background : In our customization we have configured MCA to process incoming emails which is basically a custom service this service in turn calls service storeIncomingEmail, and rest of the custom code follows.
Now though we are able to receive emails (which can be seen in the communications in party manager), we have noticed that system does not some process the attachments and creates the link between communication event and content.
Analysis shows, MimeMessageWrapper.getAttachmentIndexes() while checking for content disposition, does a case sensitive comparison, which should rather be case insensitive.
This small change fixes the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172213 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 07:53:49 +00:00
Hans Bakker
0ee18aea7d
internal help should be https otherwise not work within the backend, added a new request to be able to show the help screens without ssl and logging in
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172175 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 02:58:13 +00:00
Jacques Le Roux
00afa0c283
A patch from Dimitri Unruh "Some dead variable assignments " https://issues.apache.org/jira/browse/OFBIZ-4426
...
Some value assignments to local variables without reading or using it.
jleroux: indeed I don't see any reasons to set the size of a byte array before feeding it with String.getBytes(), since NPE is handled above. I have even simplified it more using function composition style.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-17 16:51:38 +00:00
Jacques Le Roux
aa575abceb
Closes https://issues.apache.org/jira/browse/OFBIZ-3403 "webtools xml data export to browser not working"
...
I finally think it's enough for this feature (I used html in label, but who cares)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171983 13f79535-47bb-0310-9956-ffa450edef68
2011-09-17 14:03:49 +00:00
Hans Bakker
f53cbf37f8
make the helpsystem public so the helpscreens can be referenced with a simple url
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171443 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 08:32:22 +00:00
Sascha Rodekamp
2dd668708f
FIX: IO stream objects are not closed ( https://issues.apache.org/jira/browse/OFBIZ-4420 ) A patch from Dimitri Unruh: Some methods are creating an IO stream object without closing it, so it could result on a descriptor leak.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171393 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 06:04:21 +00:00
Sascha Rodekamp
a9248102ed
FIX: encodeURI before construct a new href value for nav-buttons in layered lookup dialog. ( https://issues.apache.org/jira/browse/OFBIZ-4423 ) A patch from Leon which fixes an encoding issue in the lookup URLs: In IE, if you use link's href to call javascript function and its parameter contains encoded multi-bytes characters, such as "%E2%82%AC" which is the result of encodeURI("€"), IE will incorrectly unescape it to "â¬" and then javascript call return unexpected result.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171391 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 05:54:18 +00:00
Hans Bakker
8f2e70a279
make sure that the product type productservice does not affect accounting when entering and shipping from inventory
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171093 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 13:32:52 +00:00
Sascha Rodekamp
9f5323c617
FIX: blockingTestScv Service is set to export="true" ( https://issues.apache.org/jira/browse/OFBIZ-4417 ) A patch from Dimitri Unruh which sets the export flag to false: blockingTestScv Service is set to export="true" without any user authorisation. So it is possible to "crash" the whole system.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171028 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 10:03:51 +00:00
Sascha Rodekamp
9910aa369d
FIX: getOrderStatus service is defined with export="true" ( https://issues.apache.org/jira/browse/OFBIZ-4419 ). A patch from Dimitri Unruh sets the export flag to false: The getOrderStatus service is defined with export="true" without to do any authorization checks.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171020 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 09:17:40 +00:00
Erwan de Ferrieres
f7b2243740
typo corrections : lable -> label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170985 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 07:39:16 +00:00
Sascha Rodekamp
97ddb4645a
FIX: Missing UiLabel and typos on Anonymous Checkout ( https://issues.apache.org/jira/browse/OFBIZ-4414 ) A patch from Carsten Schinzer: custsetting.ftl has typos: Opening tag <lable> is used on four occasions instead of <label> while closing tags correctly refer to </label>. Header of section refers to EcommerceUiLabel "EcommerceYourNamePhoneAndEmail" which is not present in specialpurpose/ecommerce/config/EcommerceUiLabels.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170968 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 06:29:54 +00:00
Sascha Rodekamp
46b29a9911
IMPROVEMENT: Replace String concatenation in a loop ( https://issues.apache.org/jira/browse/OFBIZ-4418 ) A patch from Dimitri Unruh.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170961 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 06:04:29 +00:00
Adrian Crum
cfdca6d115
Fixed Facility Group screen layout.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170888 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 23:02:25 +00:00
Adrian Crum
82366d0274
Fixed Facility Geo Location screen layout.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170780 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 19:17:15 +00:00
Sascha Rodekamp
16607bb1ac
UPDATE: Some improvements with Map iterations ( https://issues.apache.org/jira/browse/OFBIZ-4415 ) A patch from Dimitri Unruh which improves some Map Iterations.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170525 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 10:52:01 +00:00
Sascha Rodekamp
5a0b643c39
Building a String using concatenation in a loop ( https://issues.apache.org/jira/browse/OFBIZ-4416 ). A patch from Dimitri Unruh: In UtilValidate.java some methods building a String using concatenation in a loop. We can obtaine better performance by using a StringBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170520 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 10:37:53 +00:00
Sascha Rodekamp
61f78cca06
PATCH: Exception when entering wrong current password on requirePasswordChange ( https://issues.apache.org/jira/browse/OFBIZ-4356 ). A patch from Dimitri Unruh to fix the wrong current password on a required password change.
...
Orig Msg:
Here is a step-by-step how the error occures:
1) Request a new password by entering your userlogin
2) Login and you will get to the "requirePasswordChange"-Page (depending on properties)
3) If you enter a wrong current password on this page the exception is thrown.
OFBiz tries to call the service "updatePassword" with a bad userLogin and an Exception is thrown:
org.ofbiz.service.ServiceAuthException: User authorization is required for this service: updatePassword [updatePassword::file:/C:/Workspace/apache_ofbiz/framework/common/servicedef/services.xml::Update a UserLogin ...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170473 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 08:30:33 +00:00
Sascha Rodekamp
c80d7e70c9
UPDATE: The "Orders" tab in "Catalog > Products" is not working ( https://issues.apache.org/jira/browse/OFBIZ-4403 ). A patch from Atul Vani which fixes the Order Tab in Catalog >Products.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170469 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 08:14:45 +00:00
Sascha Rodekamp
c6226ef627
UPDATE: Missing german conditional label ( https://issues.apache.org/jira/browse/OFBIZ-4404 ). One new german conditional label from Dimitri Unruh.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170466 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 08:00:02 +00:00
Sascha Rodekamp
0d1218dbfd
UPDATE: Some inefficient Map iterations ( https://issues.apache.org/jira/browse/OFBIZ-4405 ). A small changed patch from Dimitri Unruh which handles some inefficient Map iterations.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170447 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 06:41:51 +00:00
Jacques Le Roux
617330e6d5
Continued refactoring (WIP...)
...
* UtilValidate.is(Not)Empty wherever possible
* Remove useless boiler plate code which makes things harder to read
* if on one line w/out {}, it avoid future errors: you can't miss the block if you need to add a line
* else on one line w/out {}, it avoid future errors: you can't miss the block if you need to add a line
* no else when return in previous if
The result is a much easier code to read. I'd recommend to use this style everywhere in OFBiz. Of course this suppose a screen with larger width than in 2000 years...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170442 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 06:18:26 +00:00
Hans Bakker
6ff0e4f1f8
move the public holiday definition from scrum to the HR component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170129 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 11:57:22 +00:00
Adrian Crum
79110878f1
Have FlexibleMapAccessor and FlexibleStringExpander implement IsEmpty so they can be evaluated by the various validation utilities.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170125 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 11:51:49 +00:00
Jacques Le Roux
e844e0dff1
Revert to r1169754, will see later: FlexibleStringExpander issues: UtilValidate.is(No)tEmpty() can't be used...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170109 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 10:50:53 +00:00
Hans Bakker
3e70fb8005
test was creating properties file on disk instead of in memory, reported by Jacques and Adrian
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170063 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 07:07:30 +00:00
Jacques Le Roux
af139395c4
For historical reason, revert recent geo data changes for USA and CAN.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170061 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 06:45:13 +00:00
Jacques Le Roux
065f14810c
Related to the recent UtilValidate.is(Not)Empty() effort. I found the reason, you can't safely pass a FlexibleStringExpander to UtilValidate.is(Not)Empty. All other cases were all right. Lesson learned the hard way, I put comments about that...
...
I also refactored, I prefer if/else with only one short expression to be on the same line, notably when return is used (then else is useless)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169917 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 20:48:10 +00:00
Jacques Le Roux
0305d6560d
Related to the recent UtilValidate.is(Not)Empty() effort. This part is OK and I prefer this style, easier to read and check (sorry not for the 1st review). I will continue on the rest, if I don't read myself blind on it...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169891 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 19:35:20 +00:00
Jacques Le Roux
13ef710f90
We need also to update seed and demo data for USA states GeoId changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169822 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 16:39:56 +00:00