Commit Graph
22020 Commits
Author SHA1 Message Date
Jacques Le Roux a73de1850c No functional change, removes an useless warning
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711914 13f79535-47bb-0310-9956-ffa450edef68
2015-11-02 09:07:00 +00:00
Jacques Le Roux 109be3c183 Fixes a bug introduced with r1710513 for OFBIZ-6422 and OFBIZ-6423, true can(must) now be used here if performFindList is used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711903 13f79535-47bb-0310-9956-ffa450edef68
2015-11-02 08:17:26 +00:00
Jacques Le Roux 98352e57eb It's easier to type
tools\test
than
  ant clean-data load-demo run-tests
:)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711767 13f79535-47bb-0310-9956-ffa450edef68
2015-11-01 13:46:31 +00:00
Jacques Le Roux 7a0eab8cdf A modified patch from Ritu Raj Lakhera for "Enhancement in the content wrappers" https://issues.apache.org/jira/browse/OFBIZ-6701
Some enhancements in the content wrapper JAVA classes. We used these enhancements in our project and observed good change in website performance. 

1. If content is empty string or null then method 'get*ContentAsText' are not caching the result. 
And thus every time this method is making SQL call even no content in database. Method should cache the empty string and null as result.
2. Overloaded method 'get*ContentAsText' is also using cache method of Delegator for '*Content' entity selection and passing 'true' to use cache for '*Worker.renderContentAsText' method. This approach is making unnecessary copies of cache for content.
	I Content wrapper cache
	II *Content entity cache
	III Content, Dataresource, ElectrocText and etc... entities cache(ContentWorker.renderContentAsText)

If I again call the 'get*ContentAsText' method then this will return the result from content wrapper cache. So there is no use of *Content, Content, Dataresource and ElectrocText cache. And these cache also filling the memory of application.



jleroux: Ritu Raj initially provided the changes only for the product content wrapper saying "We also applied the same logic for category content wrapper." I asked him if he could provide a patch for all content wrappers. I completed the parts for Category and Workeffort content wrapper which missed some lines.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711578 13f79535-47bb-0310-9956-ffa450edef68
2015-10-31 05:39:13 +00:00
Jacques Le Roux 0d0a5a1db5 Fixes a typo after "clearchris"'s report on user ML.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711519 13f79535-47bb-0310-9956-ffa450edef68
2015-10-30 17:26:25 +00:00
Jacques Le Roux e9705da1ff Fixes a French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711513 13f79535-47bb-0310-9956-ffa450edef68
2015-10-30 17:20:18 +00:00
Jacques Le Roux a07cd713d7 Fixes warnings appearing in log, thanks to Adrian on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711426 13f79535-47bb-0310-9956-ffa450edef68
2015-10-30 08:33:45 +00:00
Taher A. Alkhateeb 71e6f2f80f fix commit 1711020 by adjusting the comment location in XML file REF OFBIZ-6703
The comment was positioned badly, this fixes it to make it clear to the user
when the logic for checking actually starts.

REF https://issues.apache.org/jira/browse/OFBIZ-6703


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711021 13f79535-47bb-0310-9956-ffa450edef68
2015-10-28 14:20:23 +00:00
Taher A. Alkhateeb 0c5dabe9a1 Fix a bug in createLead service as described in OFBIZ-6703
Fix a bug in createLead service in which a system user cannot create
a lead more than one time in the SFA screens. The reason is that
the createLead service tries everytime to create a PartyRole of type
OWNER in this service even if it already exists which leads to a failure
and transaction rollback for the entire call.

REF https://issues.apache.org/jira/browse/OFBIZ-6703


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711020 13f79535-47bb-0310-9956-ffa450edef68
2015-10-28 14:16:00 +00:00
Jacques Le Roux 293a0a27b2 No functional changes:
Removes trailing blanks
Indent differently (to be discussed)
Put more info in comments

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1711019 13f79535-47bb-0310-9956-ffa450edef68
2015-10-28 14:13:00 +00:00
Jacques Le Roux ffa71d74ae 3 patches from Christian Carlow for "FOP rendered list form widgets do not work for fields with postition > 0" https://issues.apache.org/jira/browse/OFBIZ-6354
It doesn't work because of the way the renderFormatHeaderRowOpen is called causes the FOP renderer to create more than one <fo:table-header>.

The 1st patch adds renderFormatHeaderOpen and renderFormatHeaderClose to separately generate <fo:table-header> for FOP and <thead> for html.
The 2nd patch adds the new list form widget header methods to the deprecated HtmlFormRenderer needed by EmailServices.java to handle OFBIZ-6360 until replaced with MacroFormRender.
The 3rd patch handles the other FormRenderers FOP, Text, Xml. This issue is still a work in process.

jleroux: there is this  "FIXME: this is an hack to avoid FOP rendering errors for empty lists (fo:table-body cannot be null)" in code



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710727 13f79535-47bb-0310-9956-ffa450edef68
2015-10-27 07:18:01 +00:00
Jacques Le Roux a1a4374359 Reverts r1710527 and r1710528 (was for OFBIZ-6354), thanks to Deepak for warning on dev ML (BuildBot still down but infra is working on it)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710675 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 18:53:33 +00:00
Deepak Dixit 3d5b387f13 (OFBIZ-6699) Removed invalid field condition from StatusValidChange data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710566 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 11:09:54 +00:00
Jacques Le Roux 4536b7e1a3 A patch from Christian Carlow for "FOP rendered list form widgets do not work for fields with postition > 0" https://issues.apache.org/jira/browse/OFBIZ-6354
This patch adds the new list form widget header methods to the deprecated HtmlFormRenderer needed by EmailServices.java to handle OFBIZ-6360 until replaced with MacroFormRender.

jleroux: completes r1710527  


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710528 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 08:18:34 +00:00
Jacques Le Roux 9efb447a80 A patch from Christian Carlow for "FOP rendered list form widgets do not work for fields with postition > 0" https://issues.apache.org/jira/browse/OFBIZ-6354
It doesn't work because of the way the renderFormatHeaderRowOpen is called causes the FOP renderer to create more than one <fo:table-header>.

This patch adds renderFormatHeaderOpen and renderFormatHeaderClose to separately generate <fo:table-header> for FOP and <thead> for html.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710527 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 08:15:45 +00:00
Jacques Le Roux 72855b58b9 Commmits as an example of using performFindList instead of performFind in a list form. "result-map-list" and "list-name" must use "list" as parameter instead of "listIt" and "override-list-size" must use "true" for things to work, see OFBIZ-6422 and OFBIZ-6423 for details
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710515 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 06:39:24 +00:00
Wei Zhang b675211e74 The <description> tag was not be closed in last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710507 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 04:12:58 +00:00
Jacques Le Roux 069c5d51bb Completes schema documentation for override-list-size in case of performFindList use - OFBIZ-6422
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710424 13f79535-47bb-0310-9956-ffa450edef68
2015-10-25 11:13:24 +00:00
Jacques Le Roux 027f037200 A patch from Christian Carlow for "Paginator.getListLimits listSize gets set to viewSize for FindServices.performFindList" https://issues.apache.org/jira/browse/OFBIZ-6422
This patch adds code to Paginator to account for the entryList being instanceOf List and extracts from the context.results object the original listSize.

jleroux, important note from OFBIZ-6423 which depends on OFBIZ-6422: it is necessary to assign a value (true makes sense) to override-list-size attribute so that FormRenderer.renderItemRows sets the lowIndex correctly, because once the results of performFindList are displayed, otherwise pages > 0 are rendered as empty.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710413 13f79535-47bb-0310-9956-ffa450edef68
2015-10-25 05:39:07 +00:00
Jacques Le Roux 0b432b6be9 A patch from Christian Carlow for "FindService.performFindList listSize = null causes errors when list is empty because the rendering system expects 0" https://issues.apache.org/jira/browse/OFBIZ-6425
I was testing at catalog/control/FindProduct. I just changed ProductForms.xml#ListProducts service-name from performFind to performFindList. Then upon initially visiting the page the error is displayed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710348 13f79535-47bb-0310-9956-ffa450edef68
2015-10-24 14:57:13 +00:00
Jacques Le Roux b213a17c2d Tiny changes after r1710317 for OFBIZ-6700
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710337 13f79535-47bb-0310-9956-ffa450edef68
2015-10-24 12:08:08 +00:00
Gil Portenseigne bd1523fc4f Add french labels in ProductEntityLabels.xml, no functional change. Thanks Wai for providing the patch. https://issues.apache.org/jira/browse/OFBIZ-6700
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710317 13f79535-47bb-0310-9956-ffa450edef68
2015-10-24 09:31:31 +00:00
Deepak Dixit 900db1f15b (OFBIZ-6687) Moved FixedAssetMaintWorkEffort view entity from specialpurpose/assetmaint to accounting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710178 13f79535-47bb-0310-9956-ffa450edef68
2015-10-23 11:35:34 +00:00
Jacques Le Roux 37dbfcceb0 A patch from Christian Carlow for "Form widget <auto-fields-entity default-field-type="find"/> does not render range find fields for fixed-point" https://issues.apache.org/jira/browse/OFBIZ-6443
A form widget with auto-entity-fields for OrderItem will render the quantity fields as text find fields but the prices as range find fields. The quantity find field should match the price range find capability.

This patch adds "fixed-point" to the condition that renders RangeFindField for induceFieldInfoFromEntityField, with support RangeFindField rendering for currency-precise fields also.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710177 13f79535-47bb-0310-9956-ffa450edef68
2015-10-23 11:35:29 +00:00
Taher A. Alkhateeb e48fe0b23a another round of javolution removal in achieving OFBIZ-5169
Remove javolution reference from multiple java source files and a few
BIRT reports. I had to replace the FastList with a LinkedList in 
SolrProductSearch.getSideDeepCategories(..) because it uses the 
implementation methods getLast() and removeFirst()

REF https://issues.apache.org/jira/browse/OFBIZ-5169


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710122 13f79535-47bb-0310-9956-ffa450edef68
2015-10-23 05:52:25 +00:00
Jacques Le Roux 68471ebd81 This slipped in inadvertently with r1710086
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710096 13f79535-47bb-0310-9956-ffa450edef68
2015-10-22 20:31:06 +00:00
Jacques Le Roux c4b535cad1 Completes r1709882 for <<Remove tooltip="${uiLabelMap.CommonRequired}" from fields>> https://issues.apache.org/jira/browse/OFBIZ-6691
Removes nonsensical required-field="true" for <display* field types

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710093 13f79535-47bb-0310-9956-ffa450edef68
2015-10-22 20:22:11 +00:00
Jacques Le Roux 9ea03cde10 Completes r1709882 for <<Remove tooltip="${uiLabelMap.CommonRequired}" from fields>> https://issues.apache.org/jira/browse/OFBIZ-6691
Replaces all }*" by requiredField but for forms using auto-fields-entity or auto-fields-service for which I created the subtask "Enhance auto-fields-entity and auto-fields-service to generate required fields on PK ones" https://issues.apache.org/jira/browse/OFBIZ-6695

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710086 13f79535-47bb-0310-9956-ffa450edef68
2015-10-22 19:47:33 +00:00
Taher A. Alkhateeb 5b49aaf3e8 convert Parent Customer Request Id field from text to lookup field REF OFBIZ-6177
Issue raised thanks to Pierre Smits, the form has autoattributes which renders
the above mentioned field as text when it should be a lookup. This commit
fixes this issue by explicitly overriding the <auto-fields-service ...>

fixes https://issues.apache.org/jira/browse/OFBIZ-6177


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710073 13f79535-47bb-0310-9956-ffa450edef68
2015-10-22 18:23:56 +00:00
Taher A. Alkhateeb 66f81f4d30 remove two unnecessary @suppersswarning tags. No impact on code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709900 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 18:54:55 +00:00
Jacques Le Roux 901b1a4a06 Removes tooltip="${uiLabelMap.CommonRequired}" from fields, https://issues.apache.org/jira/browse/OFBIZ-6691
Instead of a quiet S/R action, this was an unexpected pain in the ass. A considerable number of forms:
    EmployeeForms.xml
    EmploymentForms.xml
    EmplPositionForms.xml
    GlobalHRSettingForms.xml
    RecruitmentForms.xml
    QuoteForms.xml
    PartyForms.xml
    StoreForms.xml
    ContactForms.xml
    FixedAssetForms.xml
    TaskForms.xml
    scrumForms.xml
    TaskForms.xml
contained a large number of fields with 
  tooltip="${uiLabelMap.CommonRequired}"
but no 
  required-field="true"


Of course display and display-entity should not be concerned, I spotted a number of them in the lot.

I also removed a bunch of harcoded * at end of labels (those followed by required-field="true"* and spotted a number of others }*"  who still need to be carefully reviewed to see if required=true is not missing there :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709882 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 16:57:25 +00:00
Jacques Le Roux 7dc24b6902 A slightly modified patch from Taher Alkhateeb for <<replace widget-style="required" with required-field="true">> https://issues.apache.org/jira/browse/OFBIZ-6690
jleroux: after a cursory review, I simply did the chunk related to exampleName by hand, it needed more work. I also removed some trailing blanks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709872 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 16:00:02 +00:00
Jacques Le Roux ab0261d769 Forgot to save before committing r1709718: "Since we now use Java 8, we no longer need to use MaxPermSize"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709726 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 05:56:19 +00:00
Jacques Le Roux 57dbdced80 Since we now use Java 8, we no longer need to use MaxPermSize
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709718 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 05:43:52 +00:00
Jacques Le Roux 3b3bce5aa0 By chance, I stumbled upon a remaining small chunk of change Sumit Pandit created for example component at "Adding placeholder attribute to text fields rendered via Form-Widget's text tag." https://issues.apache.org/jira/browse/OFBIZ-5341
Since I don't like to waste, here is the commit he asked for

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709684 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 21:12:26 +00:00
Jacques Le Roux 2d47601831 An improved patch from Pierre Gaudin for "JGrowl to display alerts " https://issues.apache.org/jira/browse/OFBIZ-6023
I've been working on Jgrowl integration for a project. (https://github.com/stanlemon/jGrowl)
This allowS to display system's messages in a popup at the top of the windows even if you scroll. This is also useful for ajax call because there is no need to scroll to the top of the screen to view message.
Message can stick to the screen until it is intentionally closed by the user or not.

jleroux? as already explained in the Jira: to have it working in trunk HEAD I had to make some changes

    I put the jgrowl loading in GlobalActions rather than GlobalDecorator
    in showjGrowl() js function
        I Added a test for if (contentMessages.length) because of an error in lookups
        I did some formatting in function showjGrowl()
        I used jQuery instead of $ (same for expandAllP() and expandAll() functions)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709679 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 20:46:42 +00:00
Jacques Le Roux b04ee5b55e Fixes a wrong reference and better document a target in main build
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709582 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 12:44:33 +00:00
Taher A. Alkhateeb c52d3d06cc Show the main title of pages in Tomahawk theme. REF OFBIZ-6153
Issue raised by Jacques Le Roux and resolved with this patch.
I kept the colors consistent with the standard colors found
in style.css.

Satisfies https://issues.apache.org/jira/browse/OFBIZ-6153


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709580 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 12:21:42 +00:00
Hans Bakker 582f8e6eb0 Selenium web driver integration using XML files: https://issues.apache.org/jira/browse/OFBIZ-6618
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709516 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 06:34:32 +00:00
Adrian Crum d2e8ad8eea Updated documentation, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709339 13f79535-47bb-0310-9956-ffa450edef68
2015-10-19 00:14:48 +00:00
Jacques Le Roux e27a1c6a18 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
This adds the migrateSalaryStep service to migrates data from OldSalaryStep to SalaryStep.
Since revision 1709214 (2015-10-18) the entity SalaryStep has been deprecated.
This service can be used to upgrade existing data from the OldSalaryStep entity to the new SalaryStep entity.
This service must be run only once, else you will get duplicates.

     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709272 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 12:29:37 +00:00
Jacques Le Roux 636e968393 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
The dateModified field was not modified (not even before auto-engine was used). I found that while changing updateSalaryStep from auto-engine to simple for lastModifiedByUserLogin and setting the createdByUserLogin field in createalaryStep services. It's now fixed
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709271 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 12:26:15 +00:00
Taher A. Alkhateeb a35fc14557 upgrade OFBiz to JDK 8 in reference to the JIRA https://issues.apache.org/jira/browse/OFBIZ-6458
This commit upgrades the framework to Java JDK 8 and prevents compiling
on earlier versions. Hence the build system should be updated to compile on
Java 8. After this point users can commit code holding Java 8 features such
as streams and lambdas

REFS OFBIZ-6458


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709262 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 11:15:59 +00:00
Taher A. Alkhateeb 98c76c19e8 fix the classpath for guava which was moved from specialpurpose to framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709259 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 11:05:00 +00:00
Jacques Le Roux e6b99c9740 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I'm certainly tired so I did not find a smart way to use entity-auto in createSalaryStep service and also create several salary steps different on the from date, at least using the older simple service works.
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709238 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 06:10:57 +00:00
Jacques Le Roux e716671cdb Fixes a wrong lang value, thanks to Adrian on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709236 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 05:35:39 +00:00
Jacques Le Roux ae872ad298 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I also decided that the "Salary StepSeq Id" Lookup needed not only a search on the fromDate but also to display the through date and the amount.
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709231 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 04:52:40 +00:00
Jacques Le Roux 286e3b6c38 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I decided other changes (adding a fromDate), notably in "Position Type Rate" and "Lookup Salary StepSeq Id" were not necessary
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709214 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 22:04:59 +00:00
Jacques Le Roux 3b423ca8fe Misc. non functional changes which were pending in my working copy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709213 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 22:00:40 +00:00
Jacques Le Roux b333dc9a14 Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I applied the patch I created for the Jira and added 
    <parameter param-name="fromDate"/>
in ListSalarySteps form, to be able to delete a salary step from the screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709192 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 16:09:43 +00:00