Adam Heath
92bf6d030d
OPTIMIZE: The help method now takes a PrintStream parameter, to which the help is
...
sent.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139862 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:20 +00:00
Adam Heath
2e30fc08d2
OPTIMIZE: Move help printing to separate method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139861 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:15 +00:00
Adam Heath
6f3c366f48
FIX: When clearing the cart, also clear the attributes map
...
and orderAttributes list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139860 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:10 +00:00
Adam Heath
5427f8e25a
FIX: createOrder(userLogin) wasn't using the cart's
...
webSiteId.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139859 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:04 +00:00
Adam Heath
cfd16faa4e
FIX: Some generics compile fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139858 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:58 +00:00
Adam Heath
4b81dff083
FIX: Fix some null comparisons, instead use ?has_content.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139857 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:50 +00:00
Adam Heath
8fba300516
FIX: When the rhs was an EntityFieldValue, the wrong model field was being
...
checked(it was checking the left field).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139856 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:44 +00:00
Adam Heath
de833d793f
FIX: Fix rendering of forms that have no fields defined.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139855 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:38 +00:00
Adam Heath
e5cc6e81f9
FIX: service:createEmailAddress: Don't *require* nonpk ContactMech
...
fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139854 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:33 +00:00
Adam Heath
62e143afa2
OPTIMIZE: Turn off some additional debug log calls for
...
catalina-related sources.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139853 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:29 +00:00
Adam Heath
7047b2b80b
FEATURE: Add support to Debug.logFoo() for using %-style format
...
strings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139852 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:24 +00:00
Adam Heath
0653d3a7d1
FEATURE: When doing bulk creation of tables, foreign key indices,
...
and declared indices, do the work in parallel. Also, when the database
does not support wildcard looking of primary key info, do the per-table
lookup in parallel.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139851 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:18 +00:00
Hans Bakker
7e07ec7ad5
improve log messages (add domainname)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139703 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 03:11:17 +00:00
Adam Heath
1af60a7143
FEATURE: Add a thread pool to GenericHelper; this is per datasource.
...
Nothing makes use of this yet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139700 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:49 +00:00
Adam Heath
07e802c9d8
FEATURE: Add helper method to fetch the results of all futures in a
...
collection, into a new list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139699 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:41 +00:00
Adam Heath
276ecca353
FEATURE: Allow the ThreadGroup to be specified for created threads.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139698 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:35 +00:00
Adam Heath
cb0f5a3b46
FEATURE: if the threadCount passed to getExecutor is negative, then use
...
the abs() value of that times the number of cpus, to specify the actual
number of threads.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139697 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:29 +00:00
Adam Heath
22ebafd3de
FEATURE: Add a flag to getExecutor that specifies whether to prestart
...
the threads in the pool.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139696 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:23 +00:00
Adam Heath
2a0c3c3fc7
OPTIMIZE: getExecutor now calls createThreadFactory, instead of creating
...
one itself.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139695 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:17 +00:00
Adam Heath
afd1a0a945
FIX: Print an error message when a path component that is added doesn't
...
actually exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139694 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:11 +00:00
Adam Heath
4e5f847aaf
FIX: Stop printing out the credit card number to the log file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139693 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:50:03 +00:00
Adam Heath
97ec62675c
FIX: Filter out hidden library files(and prevent recursing into hidden
...
folders).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139692 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:57 +00:00
Adam Heath
b075aeec1f
FIX: s/Finsished/Finished/.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139691 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:51 +00:00
Adam Heath
94afb6b15f
FIX: Ignore jdbm UtilCache disk files.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139690 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:45 +00:00
Adam Heath
06e010b587
FIX: Add a check for java being at least 1.6.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139689 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:41 +00:00
Adam Heath
e4e81b1363
TESTS: Call the library api unit tests when the container tests are run.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139688 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:37 +00:00
Adam Heath
f30de08afd
FIX: Add framework/sql to api unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139687 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 02:49:33 +00:00
Scott Gray
603e1504fe
OFBIZ-4306 fix bug reported by Gaudin Pierre. The datejs library's Date.parse(string) method doesn't work very well, seems to just guess at what format to use. Switch to using the parseExact(date, format) method instead.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139521 13f79535-47bb-0310-9956-ffa450edef68
2011-06-25 11:13:33 +00:00
Scott Gray
89f4d19219
OFBIZ-4323 fix NPE bug reported by Javier Orrantia, screen xml documents rendered retrieved via the DataResourceWorker weren't using the correct UtilXml method that populates the xml documents userData.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139504 13f79535-47bb-0310-9956-ffa450edef68
2011-06-25 08:45:22 +00:00
Adam Heath
920ed26326
Fix broken 1078215, the object instance variable was removed, because
...
dumb smart code editors thought it was unused. Please understand the
code you change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139396 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 18:16:55 +00:00
Jacques Le Roux
4853449c25
A patch from Nicolas Malin <<Display dateTime field with input method time-dropdown not use context value to display hour and minutes>> https://issues.apache.org/jira/browse/OFBIZ-4319
...
If you define a dateTime field like that :
<field name="estimatedStartDate"><date-time input-method="time-dropdown" step="10"/></field>
and pass in context : estimatedStartDate = "2011-06-016 20:30:00"
when you edit the form, estimatedStartDate takes the good value 2011-06-016 on date, but takes nowTimestamps.hour for dropdown hour instead of 20 and nowTimestamps.minutes for dropdown minutes instead of 30
To test the patch :
go to ofbiz example component with given date : "https://localhost:8443/example/control/FormWidgetExamples?field4=2001-01-01 02:21:000"
the field 4 must have hour to 02 and minutes to 21
The patch also corrects multiple definition : sr.append("\" value=\"");
and removes unneeded escape at end line : if (UtilValidate.isEmpty(requiredStyle)) requiredStyle = "required";
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139385 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 17:33:25 +00:00
Erwan de Ferrieres
1c150a1edf
No need to build 2 times when executing run-tests-with-cobertura, as run-tests is already calling this target
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139350 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 15:10:49 +00:00
Andrew Zeneski
219d41e120
fixed issue where setPackedOnly flag was being ignored when calling quickShipEntireOrder
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139346 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 15:02:22 +00:00
Erwan de Ferrieres
1b0f365f82
A patch from Stephane Ducas - OFBIZ-4324 - When creating a customer from the shopping cart the selected country has to be the default one
...
I slightly modified your patch and put the defaultCountryGeoId in CommonScreens.xml#countries so the geoId will always be filled
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139291 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 13:13:44 +00:00
Jacopo Cappellato
5de7b7a778
Patch from Pranay Pandey: oldProductId was not being set as output parameter by the service implementation while defined in service definition.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138877 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 13:45:13 +00:00
Jacques Le Roux
401087b49f
A patch from Nicolas Malin <<Add missing french entity label on ContactMechPurposeType and ContactMechType>> https://issues.apache.org/jira/browse/OFBIZ-4322
...
Add missing label :
ContactMechType.description.INTERNAL_PARTYID
ContactMechPurposeType.description.MARKETING_EMAIL
ContactMechPurposeType.description.ICAL_URL
ContactMechPurposeType.description.FAX_SHIPPING
ContactMechPurposeType.description.FAX_BILLING
and homogenize and correct some other french label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138800 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 09:49:48 +00:00
Jacques Le Roux
8a9e10952f
With Adrian's last changes at r1138575 this is no longer needed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138661 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 22:16:03 +00:00
Erwan de Ferrieres
6193db4479
Only the run-tests-with-cobertura target should be downloading cobertura
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138649 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 21:52:18 +00:00
Adrian Crum
af5b6cfd1c
Small fixup for my previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138575 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 18:40:50 +00:00
Jacques Le Roux
742c554817
By moving formName and fieldFormName in parameters order r1138485 broke the current OOTB code which still uses htmlTemplate.lookupField
...
There is still an issue: the lookup button does not show
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138569 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 18:01:52 +00:00
Adrian Crum
3fc434f86c
More work on the renderLookupField Freemarker macro: Improved documentation, provide default values for optional parameters, jQuery bug fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138485 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 14:39:06 +00:00
Jacques Le Roux
e94051396b
Fixes a bug reported by someone on main OFBiz wiki page (will be removed from there)
...
=======================================================================
ajax FieldLookup bug for ofbiz 11.04
showDescription="false" is not work
you should add the code in [selectall.js] file
method "function ajaxAutoCompleter(areaCsvString, showDescription, defaultMinLength, formName){"
at header:
{code:title=selectall.js|borderStyle=solid}
////////////////////////////////////////////////////////////
if(typeof(showDescription)=="string"){
showDescription = showDescription== "false"? false : true;
}
////////////////////////////////////////////////////////////
{code}
then it will be work.
=======================================================================
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138463 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 13:47:14 +00:00
Erwan de Ferrieres
c2332f5f69
A patch from Pierre Gaudin - OFBIZ-4320 - can't select good phase into task edit form
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137986 13f79535-47bb-0310-9956-ffa450edef68
2011-06-21 12:58:04 +00:00
Adrian Crum
7ec4134b8a
Documentation for the renderLookupField Freemarker macro.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137603 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 12:00:39 +00:00
Jacques Le Roux
46a0e23b66
A patch from Rene Scheibe"ProductWorker.getSelectableProductFeaturesByTypesAndSeq() returns duplicate entries" https://issues.apache.org/jira/browse/OFBIZ-4276
...
Calling ProductWorker#getSelectableProductFeaturesByTypesAndSeq() returns duplicate entries.
Example:
A virtual product with 2 variants:
variant 1 features
COLOR: blau
SIZE: XXL
MATERIAL: Holz
variant 2 features:
COLOR: rot
SIZE: L
MATERIAL: Stahl
Actual output:
{
{{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
{{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
{{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
{{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}},
{{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}}
{{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}},
{{productFeatureTypeId=MATERIAL, description=Material}, {productFeatureId=MATERIAL_HOLZ, description=Holz}, {productFeatureId=MATERIAL_STAHL, description=Stahl}},
{{productFeatureTypeId=MATERIAL, description=Material}, {productFeatureId=MATERIAL_HOLZ, description=Holz}, {productFeatureId=MATERIAL_STAHL, description=Stahl}}
}
Expected output:
{
{{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
{{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}},
{{productFeatureTypeId=MATERIAL, description=Material}, {productFeatureId=MATERIAL_HOLZ, description=Holz}, {productFeatureId=MATERIAL_STAHL, description=Stahl}}
}
Patch: Moved a statement out of a for loop to the correct place.
JLR: tested with WebPos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137435 13f79535-47bb-0310-9956-ffa450edef68
2011-06-19 21:07:27 +00:00
Jacques Le Roux
dd7e1be1c1
A patch from Leon <<"setUserPreference" goes to main page instead last view if current form includes any lookup field>> https://issues.apache.org/jira/browse/OFBIZ-4313
...
When I open a form which include lookup field and then click the expand/collapse button around the upper right corner in the the header, the page will go to "main" after user preference is settled.
The cause is the requests initiated by lookup field does not remember the last view name. It simply use "main" instead.
Patch to make lookup requests remember the LAST_VIEW_NAME correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137433 13f79535-47bb-0310-9956-ffa450edef68
2011-06-19 20:59:35 +00:00
Scott Gray
0a3eee807a
Remove position attributes from FindForumMessages form, gets the layout back to normal
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137315 13f79535-47bb-0310-9956-ffa450edef68
2011-06-19 09:03:53 +00:00
Jacques Le Roux
7a9e80e6ef
A patch from Leon "Trivial patch to ModelViewEntity class to make view entity able to handle entity condition between field from one entity and another" https://issues.apache.org/jira/browse/OFBIZ-4321
...
In view entity definition, we can use <condition-expr> to create a filter condition between field and some value using specific operator. It should be also possible to make condition between field and rel-field through some kind operator. Such as:
<view-entity entity-name="xxx" package-name="xxx">
...
<entity-condition>
<condition-expr entity-alias="A" field-name="a" operator="equals" rel-entity-alias="B" rel-field-name="b" />
</entity-condition>
</view-entity>
But there's a trivial defect in current ModelViewEntity which prevent this case working.
} else if ( value == null && (operator.equals(EntityOperator.EQUALS) || operator.equals(EntityOperator.NOT_EQUAL))) {
return EntityCondition.makeCondition(lhs, UtilGenerics.<EntityComparisonOperator<?,?>>cast(operator), null);
} else {
In the above code extracted from ModelViewEntity, it does not consider the condition that the relField could be defined when value==null.
JLR:I checked that || should not be used in <<value == null && this.relFieldName>>, it was not obvious to me but is correct
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137201 13f79535-47bb-0310-9956-ffa450edef68
2011-06-18 15:17:22 +00:00
Erwan de Ferrieres
8a175631cb
Making PageTitleTaskAssignedToMe more generic in French
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1136856 13f79535-47bb-0310-9956-ffa450edef68
2011-06-17 12:12:03 +00:00
Erwan de Ferrieres
32b5ffb11f
Better French translation for CommonPortalPagesForApplication
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1136854 13f79535-47bb-0310-9956-ffa450edef68
2011-06-17 12:10:14 +00:00