Commit Graph
591 Commits
Author SHA1 Message Date
Deepak Dixit 509727e6a1 Applied patch from jira issue - OFBIZ-6566 -SecurityGroup doesn't get removed from a Party.
Thanks Pierre Smits for reporting the issue and thanks  Neeraj Kumawat for providing the patch for the same.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1696234 13f79535-47bb-0310-9956-ffa450edef68
2015-08-17 10:53:20 +00:00
Jacques Le Roux 7fb125b874 OFBIZ-6536 - The "Create new" link under partymgr has disappeared
This patch removes CreateNewParty intermediate screen. This screen used to just include a menu. This menu is now into findParty screen, the security has been moved from screen to menu.
The CreateNewParty screen is not used elsewhere so can disappear, so is findparty.ftl, replaced by form widgets



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687851 13f79535-47bb-0310-9956-ffa450edef68
2015-06-26 21:12:46 +00:00
Nicolas Malin f9f1f01098 Migrate findParty.ftl to form widgets, related issue OFBIZ-6227. Added a new service performFindParty oriented only on search operation (do not contains screen information that managed by screen widget) and convert the FindParty form to works very similar of the older but with widget capacity. Thanks Gil Portenseigne for this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686667 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 19:43:49 +00:00
Jacques Le Roux da0c36f015 Adds Postal Address templates for France
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684031 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 13:02:57 +00:00
Jacques Le Roux fd0c8a6c27 No functional changes, only syntax improvements
Replaces "?if_exists" occurences by ! 
Removes a test on "?has_content" when not needed (! is enough).
Removes "?if_exists" when useless (after ?has_content)




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684030 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 13:00:27 +00:00
Jacques Le Roux 1c45038747 A slightly modified patch from Pierre Smits "Adding a Postal Address templates for the Netherlands" https://issues.apache.org/jira/browse/OFBIZ-6470
jleroux: I simply replaced "?if_exists" occurences by ! and removed a test on "?has_content" when not needed (! was enough). I will continue in the same spirit on files I committed recently (Forrest Rae's patch) and earlier



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684026 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 12:12:34 +00:00
Jacques Le Roux 8a0b8fbe21 A patch from Forrest Rae "Postal Address PDF Formatter Screen Problems" https://issues.apache.org/jira/browse/OFBIZ-6444
A couple updates are needed to the postalAddressPdfFormatter screen:
First, the screen template is set to use the HTML renderer which results in this error in the log:
    [java] 2015-06-03 13:44:53,400 |0.0.0.0-8009-exec-13 |ModelScreenWidget             |W| In platform-dependent could not find template for xsl-fo, using the one for html.

Second, the various PostalAddressXXXX.fo.ftl files do not escape XML properly, and addresses with an & in them end up causing a FreeMarker template error.

Test:  For number 1, just get a "Report" for a quote, and then look at your log file. For number 2, add an "General Correspondence" address to a party that contains an ampersand, like "5th & Oak Street", create a quote for that Party, and then get the "Report" for that quote.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683998 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 08:05:25 +00:00
Nicolas Malin 7d94967a68 Convert javolution FastMap, FastSet and FastList by standard java.util.*
Related to OFBIZ-5781 Convert Javolution collections into Java collections
Thanks to Deepak Dixit and Adrian Crum for their help.

By defautl converted :
 * FastMap by HashMap
 * FastList by LinkedList
 * FastSet by HashSet

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672752 13f79535-47bb-0310-9956-ffa450edef68
2015-04-10 20:22:54 +00:00
Ashish Vijaywargiya 74e2175dd1 Applied patch from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647310 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 13:20:03 +00:00
Jacopo Cappellato 99b7f462f2 Refactoring of Visit/Visitor/ServerHit* (and related) entities in order to be able to maintain them in a database separate from the main transactional database:
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:19:33 +00:00
Ashish Vijaywargiya f8927d3d3e Applied patch from jira issue OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue().
We have removed the recent changes that we did for <property-to-field> in XML file because those changes was not actually needed.
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646214 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 12:28:02 +00:00
Ashish Vijaywargiya f19b8bdfe7 Reverting r1646165. It seems that changes that we did for <property-to-field> are not needed. I will commit the new changes soon.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646191 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 10:49:41 +00:00
Ashish Vijaywargiya d3e50d1e18 Applied patch from jira issue - OFBIZ-5892 - Replace all occurences of dispatcher.runSync in groovy files with runService() of DSL.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646167 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 08:10:12 +00:00
Ashish Vijaywargiya fa7cb8eb15 Applied recent patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue().
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646165 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 07:57:56 +00:00
Ashish Vijaywargiya 9e044d163a Applied patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue(). Thanks so much Arun for this important contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1644015 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 10:09:22 +00:00
Jacques Le Roux 243ed3437b A patch from Deepak for "Party Content Upload Ajax Is Broken" https://issues.apache.org/jira/browse/OFBIZ-5891, thanks to Adrian's report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643423 13f79535-47bb-0310-9956-ffa450edef68
2014-12-05 20:41:38 +00:00
Adrian Crum efc25f07ff Party Manager - remove unused element from web.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642580 13f79535-47bb-0310-9956-ffa450edef68
2014-11-30 18:11:41 +00:00
Adrian Crum e5a06480cd Party Manager - consolidate JS file locations into a single folder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642575 13f79535-47bb-0310-9956-ffa450edef68
2014-11-30 17:47:15 +00:00
Ashish Vijaywargiya 66e20b8d44 Applied patch from jira issue - OFBIZ-5551 - Cannot delete the record When Server Timezone and Application timeZone are different.
Thanks  SenthilMurugan for reporting the issue and thanks Deepak for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639892 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:22:21 +00:00
Ashish Vijaywargiya 37dc0685db Applied patch from jira issue - OFBIZ-5824 - Error in communication screen while perfom sorting.
=========================================================================
In partymgr contrller.xml, we have view request named "ViewCommunicationEvent", and this request call an service event, due to this when we try to perform sorting on Child Communication Events, Customer Request List or any other screen over Communication screen then it will thorw following exception:

org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [communicationEventId] passed to secure (https) request-map with uri [ViewCommunicationEvent] with an event that calls service [setCommEventRoleToRead]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.
 

Also due to this service event call on view request entry we can't open the communication events in new tab. Ideally this service should be call in screen context instead view request.

=====================================

Thanks Deepak for reporting the issue and providing the patch for the same. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632745 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 09:17:05 +00:00
Anil Patel dcc461ba1b [OFBIZ-3658] This is UX change, Some may like it and other may not.
Jira ticket is open for long so I assume its ok to modify UX as per the recommendations on it.

I don't see need for backporting this commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626447 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 14:14:36 +00:00
Jacques Le Roux 1c32c00b3e Fixes a bug introduced with commits for OFBIZ-4902.
When you replace the Freemarker if_exists built-in with the ! operator, when the ! is followed by a + you need to evaluate the expression conditioned by the ! 1st. Else the following chars are used as default value. In other words, you need to put parenthesis around the expression including the ! operator
I tested with tomahawk/includes/appbarClose.ftl and header.ftl files of bluelight and droppingcrumbs themes
I then applied the same scheme on catalog/categorydetail.ftl, party/editShoppingList.ftl, ebaystore/store/returnPolicy.ftl and party/findparty.ftl w/o testing. I guess it's ok
I did not find the same scheme elsewhere

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624876 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 17:22:18 +00:00
Adrian Crum d01b589e78 Fix broken contact mechanism screenlet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621363 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 18:59:02 +00:00
Jacques Le Roux 817cd610e7 [Rhino] Trailing comma is not legal in an ECMA-262 object initializer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618570 13f79535-47bb-0310-9956-ffa450edef68
2014-08-18 10:17:45 +00:00
Ashish Vijaywargiya d0566c2968 Applied the patch OFBIZ-4902_application.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists.
Thanks http://ofbiz.us team for providing the patch work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618336 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 11:34:57 +00:00
Jacques Le Roux d7ab220111 Thanks to Pierre on dev ML, reverts a wrong commit (was already OK, misread)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574127 13f79535-47bb-0310-9956-ffa450edef68
2014-03-04 16:33:38 +00:00
Jacques Le Roux 935c8d3e47 Better i10n
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574088 13f79535-47bb-0310-9956-ffa450edef68
2014-03-04 13:13:20 +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
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 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
Jacques Le Roux 22cdda72c4 This closes "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
And definitively fixes issues with i18n of geolocation 

It introduces a "locale" attribute to the "set" operation in widget (I only tested screen, form is quite similar, should be ok) and minilang.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554681 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 21:30:12 +00:00
Jacques Le Roux c28edba6d8 This fixes the geolocation in OFBiz, for both Google Maps and OpenLayers. It seems few changes, it took me more time than I thought. I hope this will last few years again, and it should be easier to maintain now.
What I did:
Upgraded from Google Maps API 2 to 3, which also means removing the keys in general.properties. They are no longer needed in API-3 (at least for our demo and local test uses), one worry less!
Refactored Google Maps code in geolocation.ftl: put more things in common,  simplified code (the API-3 is better from this POV).

For OpenLayers, due to most browsers now rejecting mixed content (HTTP vs HTTPS), I had to follow their advice and put OpenLayers-2.13.1.js + images and theme(finally not used) in the framework. Not a big deal in term of size but again one more lib to worry about. Anyway geolocation is not vital for OFBiz. I have also added a zoom and navigation widget in maps. Note that IE warns about mixed content, but you can bypass it.

While working on editGeoLocation (in Party) I noticed it does not update the elevation. I found it was possible http://www.daftlogic.com/sandbox-google-maps-find-altitude.htm but I did not implement it, lack of time...
Also I got once a NPE in CallSimpleMapProcessor (when using editGeoLocation) but was unable to reproduce (w/o changes before and after)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554536 13f79535-47bb-0310-9956-ffa450edef68
2013-12-31 15:22:21 +00:00
Adrian Crum 2d953bf8e1 Fixed a bug in Party Manager where FreeMarker threw an exception when a PostalAddress did not contain a country GEO ID.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554290 13f79535-47bb-0310-9956-ffa450edef68
2013-12-30 18:15:49 +00:00
Jacques Le Roux 274a420596 Fixes an issue where externalKeyParam was not escaped in link so was useless (this is only in .ftl files)
Actually the right thing to do should be to work on migrating all freemarker templates in backend to widgets and using target-type="inter-app" for those. I know Adrian has opened a Jira for that, next task in my TODO list. 
Without this effort we will never be able to style the backend uniformly, notably in custom projects...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1552149 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 23:00:57 +00:00
Jacques Le Roux e23c626113 This fixes
"Addition of item to shopping list is not working" https://issues.apache.org/jira/browse/OFBIZ-4903
"Problem when saving a product to a shopping list" https://issues.apache.org/jira/browse/OFBIZ-4589
I don't pretend it's glorious code. For instance I gave up on trying to have the groovy changes snippets consistent in both components and to reuse the way it's done in party. And the way I secured the indexes remember me when I was hacking in APL. For my defense, it was really a mess... and my time is limited...
Anyway, at least it fixes all the issues I crossed in shopping list editing in both party and ecommerce components:
* NPE on sessions ending
* wrong and failing (NPE in ftl) pagination
* error on pagination links after adding a product

Tested with both 2 and 20 size view on both sides


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1532342 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 14:03:54 +00:00
Jacques Le Roux 59774c4d80 I made a typo in the signature of UtilProperties.getPropertyValue() in my last commit, the last parameter is a String
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531876 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 12:37:03 +00:00
Jacques Le Roux a0dcb59884 Avoids fixed view sizes and provides default value in case of missing property
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531874 13f79535-47bb-0310-9956-ffa450edef68
2013-10-14 12:20:01 +00:00
Jacques Le Roux bd51b2cd2f Fixes an issue reported by Robert G. (gan@mercon24.de) on user ML. I created <<Error in PartyFinancialHistory.groovy calculation of the "totalToBeReceived" / "totalToBePayed" >> https://issues.apache.org/jira/browse/OFBIZ-5339 for that
I previously refactored PartyFinancialHistory.groovy at r1528144, r1528146, r1528149, r1528298

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1529418 13f79535-47bb-0310-9956-ffa450edef68
2013-10-05 09:18:09 +00:00
Jacques Le Roux b08a1bfbc1 Fixes typos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1528298 13f79535-47bb-0310-9956-ffa450edef68
2013-10-02 03:26:01 +00:00
Jacques Le Roux d4bcce9060 While at it removes FastMap and simplifies code. I resisted to remove trailing semicolons...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1528149 13f79535-47bb-0310-9956-ffa450edef68
2013-10-01 17:01:34 +00:00
Jacques Le Roux 3fb9acaa2b Even a bit more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1528146 13f79535-47bb-0310-9956-ffa450edef68
2013-10-01 16:47:19 +00:00
Jacques Le Roux 64f6b4a999 Formats the code and makes transferAmount calculation more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1528144 13f79535-47bb-0310-9956-ffa450edef68
2013-10-01 16:43:30 +00:00
Hans Bakker 8df9a52ca9 add a csv party import and export function to the party component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1507200 13f79535-47bb-0310-9956-ffa450edef68
2013-07-26 07:00:28 +00:00
Jacques Le Roux b591e84b2a A slightly modified patch from Gil Portenseigne for "Missing PartyCountryCode uiLabel" https://issues.apache.org/jira/browse/OFBIZ-5138
The label ${uiLabelMap.PartyCountryCode} is used several times in the project but i could not find the definition of PartyCountryCode in label definition files.
I looked further and found CommonCountryCode in label file which is not used and fill the need for PartyCountryCode. To solve this I propose to rename all PartyCountryCode to CommonCountryCode.

jleroux: I also moved CommonCountryCode, CommonCountryCodeMissing and CommonCountryMissing from PartyUiLabels.xml to CommonUiLabels.xml





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447664 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 10:55:10 +00:00
Scott Gray a2a2857bef Replace more misc. webSiteId retrievals with calls to WebSiteWorker.getWebSiteId(request). Deprecated CatalogWorker.getWebSiteId(request) and CatalogWorker.getWebSite(request).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400626 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 11:27:10 +00:00
Jacopo Cappellato c6ef77ac59 Removed the old and unused "serviceReaderUrls" context-param from all the web applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364217 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 06:33:26 +00:00
Jacques Le Roux 302e44781d A patch from Ankit for "Error on Shopping List Page" Jain https://issues.apache.org/jira/browse/OFBIZ-4957
In the groovy EditShoppingList.groovy the value of lowIndex is 0 that's why in the ftl we should use lowIndex instead of lowIndex-1.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1359500 13f79535-47bb-0310-9956-ffa450edef68
2012-07-10 07:11:38 +00:00
Hans Bakker df86e7f69d update revision 1353381 to use CREATE/UPDATE?DELETE instead of ADMIN, suggestion from Jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357453 13f79535-47bb-0310-9956-ffa450edef68
2012-07-05 03:24:57 +00:00
Hans Bakker 26be6e9d7c Give ACCOUNTING_ADMIN the same access as PAY_INFO_ADMIN because part of accounting component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1353381 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 02:22:58 +00:00