Adam Heath
c693076ab6
FIX: Fix NPE in ModelAliasAll.iterator(), when
...
fieldsToExclude is null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139871 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:09:38 +00:00
Adam Heath
a4fbfd05ec
FIX: EntityFieldValue has a helper method for fetching the
...
ModelField; use that instead of fetching the ModelField directly from
the entity. This is a fix for view-conditions, as the EntityFieldValue
has an internal ModelViewEntity that it uses to fetch the field;
fetching the raw fieldName was not correct in these cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139870 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:09:32 +00:00
Adam Heath
f75220c219
FIX: getModelField: when fetching the ModelField, handle the
...
case of the field being part of a ModelViewEntity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139869 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:53 +00:00
Adam Heath
939c932983
OPTIMIZE: ViewEntityCondition.createCondition: fetch the lhs
...
field into a local variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139868 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:48 +00:00
Adam Heath
3338c7743d
OPTIMIZE: ViewEntityCondition.createCondition: move the
...
fetching of lhs a little bit earlier.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139867 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:42 +00:00
Adam Heath
829da95986
FEATURE: Refactored to support -help/-? anywhere; also, cmdline parse errors now
...
send help to System.err, like a normal unix program.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139866 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:37 +00:00
Adam Heath
a92bcce610
OPTIMIZE: The internal loaderArgs variable is now a list instead of a String
...
array.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139864 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:32 +00:00
Adam Heath
83bdc59a57
OPTIMIZE: All the fullinit code is no longer inside an if; instead, if fullinit is
...
not wanted, do an early return. This causes the code to remove one
indent level.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139863 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:08:26 +00:00
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