Commit Graph
25453 Commits
Author SHA1 Message Date
Aditya Sharma bb047e2b00 Improved: Add Option to update Facility Party Role on Edit Facility Party Role screen.
(OFBIZ-9085)
Used response type as 'view' instead of 'request-redirect' for error. As commented by Deepak Dixit on dev mailing list 'In case of error, we need to use view or request as response type as if we use request-redirect we need to redirect all the form parameter along with error messages.'
Thanks Deepak for the heads up.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837028 13f79535-47bb-0310-9956-ffa450edef68
2018-07-30 07:30:13 +00:00
Aditya Sharma 4c4932be8d Improved: Add Option to update Facility Party Role on Edit Facility Party Role screen.
(OFBIZ-9085)
When using response type as 'view', the url of the page changes to specific request name. Instead of that it is better to use 'request-redirect' to give a better user experience. Hence, changing response type to 'request-redirect'.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836908 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 13:31:49 +00:00
Aditya Sharma 5ac33f6b59 Improved: Add Option to update Facility Party Role on Edit Facility Party Role screen.
(OFBIZ-9085)
Manually applied the outdated patch. Slightly modified the patch changes, uiLabel was missing for title of 'thruDate'.
Thanks Akshay Modak for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836906 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 13:28:46 +00:00
Deepak Dixit 3093b5a476 Improved: Used input type=submit instead of anchor and javascript code to submit form where applicable.
(OFBIZ-10482)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836905 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 13:27:22 +00:00
Deepak Dixit d71d1c4617 Improved: Removed unused code, input type image was used to submit form usign onClick event. These code was from pre-apache era
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836894 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 12:26:31 +00:00
Deepak Dixit 252828d8b0 Improved: Improved: Use application/javascript instead of text/javascript
(OFBIZ-10492)
Added missing file in last commit

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836893 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 12:21:52 +00:00
Suraj Khurana 5cc05e41b5 Improved: Removed unused code after recent changes.
(OFBIZ-9544)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836887 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 10:58:43 +00:00
Deepak Dixit ef0c694a46 Improved: Use application/javascript instead of text/javascript
(OFBIZ-10492)
Replace text/javascript with application/javascript in all the script tag

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836886 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 10:51:52 +00:00
Suraj Khurana ec859eb0ca Improved: Verify contact mech details (expired or not) before copying it to new order while re-ordering.
(OFBIZ-9544)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836882 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 09:32:05 +00:00
Suraj Khurana 1278d00e50 Improved: Rename deletePartyContactMechPurpose* services with proper names.
Thanks everyone for discussions.
(OFBIZ-10398)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836874 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 08:25:25 +00:00
Deepak Dixit 99220516cb Improved: Use application/javascript instead of text/javascript
(OFBIZ-10492)
Updated compressibleMimeType list and use application/javascript in place of text/javascript

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836871 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 06:26:48 +00:00
Michael Brohl fc3c92f7d6 Fixed: Corrected wrong import introduced in 1813640.
Thanks Scott Gray for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836796 13f79535-47bb-0310-9956-ffa450edef68
2018-07-27 09:30:13 +00:00
Taher A. Alkhateeb 2c4907a873 Improved: refactor the MapContext to use a Deque instead of List interface
(OFBIZ-10485)

The MapContext and MapStack classes are abstracting away the underlying
LinkedList implementation behind a List. The problem is that the push and pop
methods are implemented awkwardly by using index zero or using size() to find
the ends of the collection.

Thus this improvement maintains the same code signature but replaces the List
interface with the Deque to utilize the getFirst(), addFirst() and addLast()
functions making the code cleaner and more declaractive.

Thanks: Mathieu Lirzin for the patch and explanation of your work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836710 13f79535-47bb-0310-9956-ffa450edef68
2018-07-26 10:02:06 +00:00
Taher A. Alkhateeb bf655a7d16 Improved: Add missing @override annotations in MapContext
(OFBIZ-10485)

Those are missing for methods that override super methods with identical signatures.

Thanks: Mathieu Lirzin for your patch and analysis


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836632 13f79535-47bb-0310-9956-ffa450edef68
2018-07-25 13:25:05 +00:00
Taher A. Alkhateeb a80c623fe7 Improved: Reafctor MapContext by removing unused code
(OFBIZ-10485)

- Remove unused functions that are only supposed to be used internally.
- Remove redundant warning and @override annotations

Thanks: Mathieu Lirzin for the patch, and careful analysis of code.
Thanks: Pradhan Sharma for reviewing the work


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836631 13f79535-47bb-0310-9956-ffa450edef68
2018-07-25 13:21:32 +00:00
Deepak Dixit 11901ea96e Improved: Remove use of deprecated language attribute from script tag
(OFBIZ-10491)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836550 13f79535-47bb-0310-9956-ffa450edef68
2018-07-24 12:41:50 +00:00
Deepak Dixit 397628ba7d Improved: Remove use of deprecated language attribute from script tag
(OFBIZ-10491)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836545 13f79535-47bb-0310-9956-ffa450edef68
2018-07-24 11:26:23 +00:00
Deepak Dixit ed0d8475a9 Removed: Found unused code while review.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836432 13f79535-47bb-0310-9956-ffa450edef68
2018-07-22 10:07:13 +00:00
Deepak Dixit 2f6618753c Fixed: compressableMimeType is not a valid attribute of apache http connector
(OFBIZ-10487)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836144 13f79535-47bb-0310-9956-ffa450edef68
2018-07-18 06:42:10 +00:00
Taher A. Alkhateeb a93c963f54 Improved: sanitized the output of XML-RPC when errors are reported.
(OFBIZ-10484)

This is implemented by overriding the parent "execute" method with a more
sanitized output for clarity and enhanced security.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836141 13f79535-47bb-0310-9956-ffa450edef68
2018-07-18 06:30:15 +00:00
Gil Portenseigne 00a1a84053 Improved : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

Rename SQL reserved words, thanks Deepak for reporting the issue and providing a patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835994 13f79535-47bb-0310-9956-ffa450edef68
2018-07-15 20:49:28 +00:00
Deepak Dixit a4da06cb56 Fixed: Not able to delete PartyRate
(OFBIZ-10483)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835964 13f79535-47bb-0310-9956-ffa450edef68
2018-07-15 10:47:55 +00:00
Deepak Dixit b13070d7fa Improved: Standardise layout for Party
(OFBIZ-10334)
Thanks Dennis Balkir for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835957 13f79535-47bb-0310-9956-ffa450edef68
2018-07-15 09:10:49 +00:00
Deepak Dixit d01361303c Improved: Reorganize import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835954 13f79535-47bb-0310-9956-ffa450edef68
2018-07-15 08:46:54 +00:00
Deepak Dixit 092a5cc390 Fixed: Missing Import in CmsEditAddPrep.groovy
(OFBIZ-10475)

Applied slightly modified patch, Thanks Dennis Balkir for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835953 13f79535-47bb-0310-9956-ffa450edef68
2018-07-15 08:45:35 +00:00
Jacques Le Roux 8fe6c1d23c Improved: no functional change, simply adds XXX tag :)
Forgot I had other pending changes :/ 
Now really removed, automated things can sometimes screw you :/


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835896 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 10:16:46 +00:00
Jacques Le Roux 2ebcd632b6 Improved: no functional change, simply adds XXX tag :)
Forgot I had other pending changes :/ now removed


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835895 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 10:12:38 +00:00
Jacques Le Roux 996311e7a7 Improved: no functional change, simply adds XXX tag :)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835893 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 09:58:22 +00:00
Jacques Le Roux d9e74e316c Fixed: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

If you go at: catalog/control/main then open the lookup on the left for category
 id, click the first category (20111) and then click on search, you will be 
prompted with this:
java.lang.IllegalArgumentException: Error running script at location 
[component://product/groovyScripts/catalog/find/KeywordSearch.groovy]: 
java.lang.NullPointerException

This is the result of the changes I made for this issue 1.5 years ago.

I missed the case where a null is passed instead of a dispatcher in
getProductCategoryContentAsText()
which is then used inside of getProductCategoryContentAsText:
ContentWorker.renderContentAsText()
The problem is, that the method renderContentAsText as a result of my changes 
uses the dispatcher to get the delegator.
Because the dispatcher is a given a null value at this point, this results in a 
null pointer.

The solution was to introduce and abstract prettyPrintConstraint method with a 
LocalDispatcher as argument and to implement it in CategoryConstraint class. 

Other implementations don't use getProductCategoryContentAsText so can simply 
return null. They will not be used anywhere anyway.

CatalogConstraint.prettyPrintConstraint with a delegator is now not
used OOTB but I prefer to keep its implementation for custom projects which 
might use it in other circumstances. I though put a TODO to possibly simply
return null.

Also while at it remove a unused requestParams variable in ProductSearchSession

Thanks: Dennis Balkir for the detailed reporting

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835891 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 09:52:26 +00:00
Deepak Dixit 66b783ca75 Improved: Improve Order layout.
(OFBIZ-10331)
Applied slightly modified patch from jira ticket, Thanks Dennis Balkir for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835889 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 09:28:04 +00:00
Akash Jain b792635558 Fixed: Not able to expire the rate amount and an error is displayed in Workeffort (OFBIZ-10114)
Thanks, Rubia Elza Joshep and Chandrashekhar Dhakad for your contibution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835887 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 09:02:51 +00:00
Suraj Khurana 058d378e22 Improved: All existing party contact mechs should be deleted before creating new one.
(OFBIZ-10396)

Currently, everywhere in code base, before creating new party contact mech record, we use 

deletePartyContactMechPurposeIfExists service to delete old records. But, problem is 

<first-from-list is used everywhere which only deletes first fetched record.

All previous records should also gets deleted before creating new party contact mech purpose for a specific purpose type.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835871 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 05:35:44 +00:00
Deepak Dixit dd47194156 Fixed: Invalid content was found starting with element 'field'.
(OFBIZ-10391)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835870 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 05:30:45 +00:00
Suraj Khurana 65b5b117f7 Improved: Empty header row should not render if list to render in file is empty.
(OFBIZ-7598)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835869 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 05:10:00 +00:00
Sharan Foga 0d3bf9886c Improved: Added content for Performance Reviews, Employee Benefits and Training to HR introduction document (OFBIZ-10256)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835745 13f79535-47bb-0310-9956-ffa450edef68
2018-07-12 14:48:20 +00:00
Jacques Le Roux b4ad57201f Improved: Rename the misnamed setUserLocale.js to setUserTimeZone.js
(OFBIZ-10472)

At the same time renames setLocaleFromBrowser to SetTimeZoneFromBrowser 
everywhere it's needed
And adds a documentation about the auth mismatch as suggested by Mathieu

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835628 13f79535-47bb-0310-9956-ffa450edef68
2018-07-11 11:16:07 +00:00
Jacques Le Roux 1421ad7c5c Improved: Align the input fields at catalog/control/main
(OFBIZ-10454)

In the meantime, before using form widgets, separate forms with form-container 
and especially horizontal rules.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835620 13f79535-47bb-0310-9956-ffa450edef68
2018-07-11 09:18:58 +00:00
Jacques Le Roux 7906358abe Reverted: setLocaleFromBrowser requires authentification
(OFBIZ-10460)

The setLocaleFromBrowser request map defined in common-controller.xml has an 
attribute of auth=false
While the service associated with it in framework/common/servicedef/services.xml 
has an attribute of auth=true.

jleroux: this was missing in the initial patch. At OFBIZ-9264 the description is
    "it sets the time zone of the user logged in to it's browser time zone."
So being logged in seems needed, hence better to set auth=true everywhere

Thanks: as reported by Deepak in OFBIZ-10460 there is a problem with that.
So we need keep the inconsistence and the service protected.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835616 13f79535-47bb-0310-9956-ffa450edef68
2018-07-11 08:14:29 +00:00
Aditya Sharma 92fbd9ecac Fixed: Upper case styling for buttontext in Tomahawk theme causing wrong behaviour for alphabetical index of the service engine page
(OFBIZ-10473)
As discussed on OFBIZ-10467, override the upper case styling with a more specific rule in Tomahawk theme to avoid upper casing of small case letters for alphabetical index of the service engine page
Thanks: Dennis Balkir, Pierre Smits & Jacques Le Roux for the discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835613 13f79535-47bb-0310-9956-ffa450edef68
2018-07-11 07:26:45 +00:00
Aditya Sharma 130df396ff Improved: Using 'buttontext' styling for the index of service engine
(OFBIZ-10467)
To give OFBiz a more equal look, the style buttontext can be added for the alphabetical index of the service engine main page.
This makes the buttons look alike with the ones that are already there for the entity engine main page.
Thanks: Dennis Balkir for patch and Pierre Smits & Jacques Le Roux for the discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835612 13f79535-47bb-0310-9956-ffa450edef68
2018-07-11 07:05:11 +00:00
Gil Portenseigne 8686e1f4c7 Improved: GetLocaleList call can provide duplicate results
(OFBIZ-10458)

Just improve hasFilter condition to use .with groovy notation.

Thanks Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835599 13f79535-47bb-0310-9956-ffa450edef68
2018-07-10 19:59:20 +00:00
Nicolas Malin b7daa1356d Improved: Improve Dutch UiLabels in Accounting component
(OFBIZ-10363)
Thanks to Pierre Smits for this improvement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835592 13f79535-47bb-0310-9956-ffa450edef68
2018-07-10 18:29:07 +00:00
Jacques Le Roux eaffb3d0f8 Fixed: setLocaleFromBrowser requires authentification
(OFBIZ-10460)

The setLocaleFromBrowser request map defined in common-controller.xml has an 
attribute of auth=false
While the service associated with it in framework/common/servicedef/services.xml 
has an attribute of auth=true.

jleroux: this was missing in the initial patch. At OFBIZ-9264 the description is
    "it sets the time zone of the user logged in to it's browser time zone."
So being logged in seems needed, hence better to set auth=true everywhere

Thanks: Mathieu Lirzin for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835586 13f79535-47bb-0310-9956-ffa450edef68
2018-07-10 17:31:50 +00:00
Jacques Le Roux 9d64d084d0 Improved: setLocaleFromBrowser should only called once by session
(OFBIZ-10471)

As Deepak mentioned in r1816537, currenlty setLocaleFromBrowser is called each 
time a page is refreshed.
We can use sessionStorage to have it called only once by session

Thanks: Deepak for reporting an issue which was boring me for long :)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835585 13f79535-47bb-0310-9956-ffa450edef68
2018-07-10 17:27:12 +00:00
Jacques Le Roux dbab78e671 Improved: no functional change, removes unneeded log info (missed it previously)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835383 13f79535-47bb-0310-9956-ffa450edef68
2018-07-09 08:25:48 +00:00
Jacques Le Roux 04d398d97b Improved: no functional change, removes unneeded log info
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835382 13f79535-47bb-0310-9956-ffa450edef68
2018-07-09 08:24:19 +00:00
Jacques Le Roux e20b34bc24 Implemented: Add a mechanism to prevent the usage of EntitySyncRemove
(OFBIZ-10008)

No configurations is available to disable usage of EntitySyncRemove. 
And it's creating problems when having a large database and frequent delete 
operations.

saveEntitySyncRemoveInfo is used to create EntitySyncRemove records in 
GenericDelegator.removeValue() and removeByPrimaryKey().

This adds a mechanism to prevent the usage of EntitySyncRemove by adding a 
property in general.properties file used to configure in entityengine.xml 






git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835296 13f79535-47bb-0310-9956-ffa450edef68
2018-07-07 07:46:04 +00:00
Jacques Le Roux 71b5e6eb14 Improved: Convert CategoryServices.xml mini lang to groovy
(OFBIZ-10031)

Fixes an issue with previous patch.

The problem was, that the value newEntity was made with the parameters map, 
which resulted in a value, which didn't had the sequenced id, that I tried to 
fix.

But after removing the map, everything works just fine

Thanks: Dennis Balkir

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835295 13f79535-47bb-0310-9956-ffa450edef68
2018-07-07 07:15:12 +00:00
Gil Portenseigne f428a7e803 Fixed: GetLocaleList call can provide duplicate results
(OFBIZ-10458)

A new Junit test is implemented to validate that no duplicates are present.
Groovy service has been refactored to use a more functional style

Thanks Mathieu Lirzin for reporting and providing the patch


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835282 13f79535-47bb-0310-9956-ffa450edef68
2018-07-06 21:10:07 +00:00
Deepak Dixit fcdfc47d0a Fixed: Framework webapp freemarkerTransform.properties has dependency on proudct component
(OFBIZ-10463)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835235 13f79535-47bb-0310-9956-ffa450edef68
2018-07-06 11:46:52 +00:00