Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux d7aec06b2b Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563949 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 15:23:41 +00:00
Jacques Le Roux da3a5ea871 makes explicit required fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563832 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 10:59:03 +00:00
Jacques Le Roux 5165fee281 I neglected to commit the patch from "Missing helptext regarding manufacturing rules" https://issues.apache.org/jira/browse/OFBIZ-5309
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563807 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 09:08:14 +00:00
Jacques Le Roux 3cf3e413c8 When last updating jQuery I forgot to commit the calling points changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563806 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 09:08:01 +00:00
Jacques Le Roux caa8d340cd Updates jQuery to 1.11.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563799 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 08:29:36 +00:00
Jacques Le Roux 8b48021a78 A patch from Christian Carlow for "Mandatory and dependent production run links don't navigate to corresponding production run page when clicked" https://issues.apache.org/jira/browse/OFBIZ-5502
When clicking the links associated with madatory or dependent production runs, the corresponding production run page is not loaded. This means its required to go back to the production run search page and lookup the productionRunId manually. I think the links should load the corresponding production run page when clicked.

This simple patch resolves the problem. The <hyperlink> elements in the form widget needed the "link-type" attribute set to "anchor" otherwise it defaults to creating a link that submits a form that automatically sets the productionRunId to the current production run workEffortId which causes this issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563683 13f79535-47bb-0310-9956-ffa450edef68
2014-02-02 17:48:37 +00:00
Jacques Le Roux 3d6d7c2f42 Put a warning about the version automatically downloaded by Ivy for activemq, postgres and mySQL jdbc drivers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563406 13f79535-47bb-0310-9956-ffa450edef68
2014-02-01 12:44:23 +00:00
Jacques Le Roux 7710b938d4 Workaround for "Lookups (layered mode) and dropdown menus overlap" (in BizznessTime Theme) https://issues.apache.org/jira/browse/OFBIZ-5519
A good example is in order creation page, open the customer lookup and then try to close it.

I think we should not fiddle with the theme, there is a faster and easier solution: center all lookups in the screen by default. It will not fix but hide the issue for now. Anyway the awful dropdown menu behaviour must be fixed and i will open another Jira for that.

You may ask why I'm concerned with a theme which is no longer bundled in future releases? It's because some custom projects still use it...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563238 13f79535-47bb-0310-9956-ffa450edef68
2014-01-31 20:06:42 +00:00
Jacques Le Roux 513d684918 Closes https://issues.apache.org/jira/browse/OFBIZ-5521 as not a problem
It was my bad, I was simply stupid on this, reverts r1519245


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1562767 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 10:33:26 +00:00
Jacques Le Roux daf4450f85 This can be removed, the same is done in renderLookupField macro in htmlFormMacroLibrary.ftl which is included above and called just below
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1562401 13f79535-47bb-0310-9956-ffa450edef68
2014-01-29 11:12:50 +00:00
Jacopo Cappellato 9f8bb29787 Some minor simplifications to ComponentContainer: removed some unnecessary overloaded methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561757 13f79535-47bb-0310-9956-ffa450edef68
2014-01-27 17:19:52 +00:00
Jacopo Cappellato ccbec25bf1 Fixed typos.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561750 13f79535-47bb-0310-9956-ffa450edef68
2014-01-27 17:01:10 +00:00
Jacques Le Roux 14daddee11 A fix for https://issues.apache.org/jira/browse/OFBIZ-5516, when adding a product to a category the from date field was not shown as required
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561467 13f79535-47bb-0310-9956-ffa450edef68
2014-01-26 09:00:59 +00:00
Jacques Le Roux 94e620d5ed A Christian Carlow's patch for "ProductionRunServices.productionRunTaskReturnMaterial: Unknown parameter found: [productionRunTaskProduce.uomId]" https://issues.apache.org/jira/browse/OFBIZ-5506
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561327 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 15:58:00 +00:00
Jacques Le Roux 8dd57be3c5 A patch from Christian Carlow for "ListReportedToEmplPositionReportingStructs displays no results" https://issues.apache.org/jira/browse/OFBIZ-5512
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561311 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 13:49:33 +00:00
Jacques Le Roux 43119ab3dc A Christian Carlow's patch for "EditEmplPositionReportingStructs LookupEmplPosition associated popup and dropdown empty" https://issues.apache.org/jira/browse/OFBIZ-5510
LookupEmplPosition drop-down and popup window show no results on the EditEmplPositionReportingStructs page for the field.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561305 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 13:35:32 +00:00
Jacques Le Roux a7ac914c02 A Christian Carlow's patch for "ListPartySkills displays no results" https://issues.apache.org/jira/browse/OFBIZ-5513
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561290 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 12:25:04 +00:00
Jacques Le Roux c8df0c3e06 A (slightly enhanced) patch from Christian Carlow for "EditEmplPosition form widget missing Internal Org drop down and title incorrect" https://issues.apache.org/jira/browse/OFBIZ-5509
EditEmplPosition shows a partyId field as a text box instead of a <select> drop down that lists the internal orgs.  The field title should also be set to Internal Org instead of PartyId for consistency.

jleroux: while at it I added a tooltip


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561286 13f79535-47bb-0310-9956-ffa450edef68
2014-01-25 11:58:09 +00:00
Jacques Le Roux 328ae4e946 A patch from Justen Walker for "Missing import in FindGeneric.groovy" https://issues.apache.org/jira/browse/OFBIZ-5504
Revision 1560176 introduces a change to FindGeneric.groovy that extracts some logic into UtilMisc. However, this class is not imported in the file and results in a MissingProperty exception.
This patch adds the import statement which resolves this bug.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560699 13f79535-47bb-0310-9956-ffa450edef68
2014-01-23 14:35:20 +00:00
Jacques Le Roux ef5fbb1d9f Somehow, though I put it in the comment, I missed to commit that at r1559769
Comment was
>Flat Grey application.js
>    moves jQuery(document).ready(function() at bottom (spotted in Chrome console)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560276 13f79535-47bb-0310-9956-ffa450edef68
2014-01-22 08:23:37 +00:00
Jacques Le Roux 9758212aa3 A patch from Simon Maskell for "Fixed Asset Depreciation Method missing list-name from form ListFixedAssetDepMethods in FixedAssetForm" https://issues.apache.org/jira/browse/OFBIZ-5499
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560205 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 21:41:34 +00:00
Adrian Crum e51a114731 Fixed a FreeMarker exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560203 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 21:33:52 +00:00
Jacques Le Roux 0757ed8a24 A patch from Gareth Carter for "last index for paging is not calculated correctly" https://issues.apache.org/jira/browse/OFBIZ-5497
The last index (used on the last button) is not calculated correctly in ftl or the renderer classes. It currently users floor which works only for list sizes that are not multiples of the view size. When you have a list size which is a multiple of the view size, it does not subtract 1 for zero based index and therefore the last button goes to the last page + 1

Examples

listSize = 1
viewSize = 10
listSize / viewSize = 0.1
floor(0.1) = 0
This one produces the correct value

listSize = 20
viewSize = 10
listSize / viewSize = 2
floor(2) = 2
Last index should be 1 because of zero based index but never occurs

To reproduce, enter a view with a list and paging functionality, the list size must be a multiple of the view size


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560176 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 20:53:29 +00:00
Adrian Crum 584c956385 Some Freemarker bug fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560056 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 16:11:24 +00:00
Adrian Crum 1358972134 Order view NPE bug fix. Don't assume a product store has a related facility.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560048 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 15:57:30 +00:00
Jacques Le Roux 1159f7cfa5 Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559997 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 12:43:11 +00:00
Jacques Le Roux c5f187beb6 A patch from Michael Ende for "SimpleMethod parameters doesnt work with prefix" https://issues.apache.org/jira/browse/OFBIZ-5371
I experienced some problems when a form submitted parameters with prefix directly to a SimpleMethod (through the controller request). 
In this case the prefix is not stripped from the parameter name. The patch updates the method ModelService.java:makePrefixMap().

The idea of the prefixMap is: 
If you have some fields like packageweight_1(value=55), packageweight_2(value=65) ... in a form and in a service you need a map called packageweight with the following key values 

packageweight{1=55;2=56;...}

The Problem is that the function makePrefixMap doesn't replace the Prefix.

For Example:
On the "Complete" button of the Facility->Shipment screen we call an event and not the completePack service directly.
The event checks some user rights and after that he call the completePack service. If we call the service from an event there throws an NumberFormatException because the packeweight-PrefixMap contains the prefixes.

This is my event description:
 <simple-method method-name="completePackCheckPermission"
        short-description="Check if this user has permission to create a picklist role"
        login-required="true">
        <check-permission permission="LOGISTICS_CREATE">
            <alt-permission permission="LOGISTICS_ADMIN"/>
            <fail-property resource="EcommerceLogisticsErrorUiLabels" property="NoPermissionForUsage" />
        </check-permission>
        <check-errors />

        <session-to-field field="packingSession"/>
        <set field="parameters.packingSession" from-field="packingSession"/>

        <set-service-fields service-name="completePack" to-map="serviceParameters"
            map="parameters" />
        <call-service service-name="completePack" in-map-name="serviceParameters" />
        <return />
    </simple-method>

jleroux: I'm not quite sure there are no side-effects, but I was not able to find one. So I will wait some time before backporting...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559814 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 19:38:45 +00:00
Jacques Le Roux 747a4a3154 This is a major update of jQuery and related, it contains:
jquery-1.8.2 to jquery-1.10.2 which implies using jquery-migrate-1.2.1 for plugins compatiblities
    jquery-ui-timepicker-addon-1.0.5 to jquery-ui-timepicker-addon-1.4.3 (using min now, better i18n)
    jquery-ui-1.9.0 to jquery-ui-1.10.3
    removes jquery.ui.datepicker.js now integrated in jquery.ui
    jquery.hotkeys-0.7.9 to jquery.hotkeys-0.8
    jquery.maskedinput-1.2.2 to jquery.maskedinput-1.3.1
    jquery.validate 1.10.0 to 1.11.1 
        I never realised how much efforts have been put in this plugin!  
        I fixed an issue in JsLanguageFilesMapping generation
        I removed the messages_ptbr.js and messages_ptpt.js files and the related conundrum in JsLanguageFileMappingCreator.java
        untested, found not use cases OOTB
    jquery.jcarousel ?(2006) to 0.3.0 (2013)
        untested, found not use cases OOTB
    jquery.flot 0.7 to 0.8.2 (lot of changes, still works)
        removes useless flotpie.ftl 
        removes empty flotr folder
    jquery.mobile-1.1.0-rc.1 to jquery.mobile-1.4.0
        untested, found not use cases OOTB
    jquery.cookie to jquery.cookie-1.4.0    


Removes all useless/redundant js files (not only jQuery unused old versions)
    notably removes all under images/jquery/ui/development-bundle/ui
    removes now useless GooglemapMarkers.js and GooglemapSimple.js

Flat Grey application.js
    moves jQuery(document).ready(function() at bottom (spotted in Chrome console) 
    
css
    I did not find much issues, I spotted the title bar of the lookups, but got it fixed after some efforts.    

Issues:
    Imagemanagement:  I got issues while testing, actually I'm not quite qure how it works, even in stable demo. It should be validated again. I commit nevertheless my changes:
        moves js part from product to images component
        removes useless calls to js files (mostly in imagemanagement, but not only)
        renames jquery.min.js to sizzle.min.js. 
        Inside sizzle.min.js, updates the Dojo part to v1.10.17-pre and removes the jQuery part
        changes to use ofbizContentUrl macro for generating js calls
        jquery.rotate.js NOT! It's jQueryRotateCompressed.js http://markmail.org/message/dit3dlh3ph4jnenp
        Got ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'D:\projectsASF\ofbizClean\framework\images\webapp\images\pro&' to length 100.  I opened OFBIZ-5501 for that
    I tried to update jstree  to jstree 3 but gave up. I let the jquery.jstree-3.0.0-beta3 files in place in case someone would give it a chance...
    
Not related but while a it:
    removes <!--flot example requests--> from birt controller (moved recently to example component)
    
    

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559769 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 16:27:09 +00:00
Jacques Le Roux 3334d1b3ca A patch from Leon for "Form pagination fails if total length of search condition is more than about 2~3k bytes" https://issues.apache.org/jira/browse/OFBIZ-5478
Since it uses "GET" method to submit the pagination request, it's restricted by the URL max length limitation.
The patch attached changes the submit way from GET to "POST" if total length of URL > 2k.


jleroux: I also sort of (found after it was due to it) reverted r1204170, I don't see the reason for this now, and it was uselessly duplicating the current entry in the page size dropdown


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559338 13f79535-47bb-0310-9956-ffa450edef68
2014-01-18 10:19:44 +00:00
Jacques Le Roux 92b42b5aef A completing patch from Olivier for "NPE thrown out while rendering disabled menu item" https://issues.apache.org/jira/browse/OFBIZ-5451
Last typo correction was'nt complete.

jleroux: this incidentally and fortunately fixes also "The Orders sub-menus don't work in Catalog and Party Profile" https://issues.apache.org/jira/browse/OFBIZ-5477

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559328 13f79535-47bb-0310-9956-ffa450edef68
2014-01-18 08:37:58 +00:00
Jacques Le Roux 23a736d5dd Adds a clean-uploads ant target, chains it with clean-all
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559083 13f79535-47bb-0310-9956-ffa450edef68
2014-01-17 11:56:42 +00:00
Adrian Crum 27d57465bf Small rewrite in JobManager.java to fix a bug where jobs could be duplicated under certain conditions. https://issues.apache.org/jira/browse/OFBIZ-5496
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1558774 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 12:48:44 +00:00
Adrian Crum 222733911b Fixed a bug in the FixedAssetTransactions. Patch contributed by Simon Maskell - https://issues.apache.org/jira/browse/OFBIZ-5488.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1558373 13f79535-47bb-0310-9956-ffa450edef68
2014-01-15 13:19:51 +00:00
Jacques Le Roux f0edd753c2 This has been wrongly removed as part of Birt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1558241 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 23:26:46 +00:00
Jacopo Cappellato b3de2f2f20 Fixed bug reported by Adrian Crum and introduced with the promotion engine refactoring that I committed in rev. 1554265: under some conditions an "ArithmeticException: Non-terminating decimal expansion" could be thrown by the new ShoppingCart$ProductPromoUseInfo.getUsageWeight() method due to missing scale and rounding mode; this method computes a "weight" for the "promotion use" that is used to sort promotions to be applied.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1558145 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 18:25:12 +00:00
Jacques Le Roux 0c9fccc6c8 Upgrades to Tomcat latest bug fix release: 7.0.50
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557593 13f79535-47bb-0310-9956-ffa450edef68
2014-01-12 18:55:53 +00:00
Jacques Le Roux 2bbdd3366b This should be better private + better comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557521 13f79535-47bb-0310-9956-ffa450edef68
2014-01-12 12:38:32 +00:00
Jacques Le Roux 9d2e62ecf6 A modified patch from Gareth Carter for "JSON Response does not set http status on error" https://issues.apache.org/jira/browse/OFBIZ-5409
This is rather a defensive patch which secure json response on services calls. 
It might need some changes in custom code if (not recommended) an Ajax GET response is used... The util.js scrpt is introduced for that, though normally should not be needed... 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557462 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 20:26:30 +00:00
Jacques Le Roux 64d21b3a29 Completes r1557447, the annoyances of blind reverting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557457 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 20:04:19 +00:00
Jacques Le Roux 112435c275 Forgot to update .classpath and LICENSE files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557456 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 19:59:04 +00:00
Jacques Le Roux c06bd63860 This fixes "Set field in (at least) widget screen does not take into account a locale for (at least) the Float type" https://issues.apache.org/jira/browse/OFBIZ-5453
It actually does more than that. It follows Adrian's proposition of improving the GeoPoint data model. 
I did not applies all of Adrian's proposition (see our conversation in the Jira issue). Feel free to apply it completely if you are inclined so. 

I will also add an entry in wiki page "Revisions Requiring Data Migration (upgrade ofbiz)" at https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=7045166

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557447 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 19:39:23 +00:00
Adrian Crum 184fcb9834 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557443 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 19:27:04 +00:00
Adrian Crum 6a42559853 Updated XStream library to latest version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557440 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 19:23:58 +00:00
Adrian Crum fe9cd1f776 Added the ability to exclude certain classes from XML serialization/deserialization.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557427 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 17:39:38 +00:00
Jacques Le Roux b3767764d7 Updates java mail-1.4.jar to mail-1.5.1.jar (tests passes)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557410 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 15:24:10 +00:00
Jacques Le Roux a08c142ee7 Updates icu4j-49_1.jar to icu4j-52_1.jar (tests passes)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557409 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 14:52:23 +00:00
Jacques Le Roux 6f114277d4 Better for nowadays!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557195 13f79535-47bb-0310-9956-ffa450edef68
2014-01-10 16:58:26 +00:00
Jacques Le Roux 344a93d20a Fixes a typo introduced at r1553887 for "NPE thrown out while rendering disabled menu item" https://issues.apache.org/jira/browse/OFBIZ-5451
Spotted by Olivier

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557185 13f79535-47bb-0310-9956-ffa450edef68
2014-01-10 16:43:39 +00:00
Jacques Le Roux 6aef8ce9c3 A comment about demo usage of geoPointId="9000" (reused for several cases)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1556472 13f79535-47bb-0310-9956-ffa450edef68
2014-01-08 09:27:57 +00:00
Jacques Le Roux ba353e058f I was wrong renaming it from Edit to View at r1555884 http://svn.apache.org/r1555884. I did not see that there is a, by default hidden, upper part of the screen where you can enter data. So it's an interesting complement to Party Geo Location update screen where you edit a party geo location using Google Map (address search and goe point displacement on map).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1556464 13f79535-47bb-0310-9956-ffa450edef68
2014-01-08 08:40:08 +00:00