Commit Graph
13573 Commits
Author SHA1 Message Date
Aditya Sharma 71988f71ca Improved: Refactor boolean returns for ShoppingCart methods
(OFBIZ-10745)
Improved boolean returns with single statement, replacing if blocks with explicit boolean return.
Thanks Suraj Khurana and Jacques Le Roux for the review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849672 13f79535-47bb-0310-9956-ffa450edef68
2018-12-24 07:10:19 +00:00
Jacques Le Roux 356984ce4f Fixed: Dependent dropdowns should be used in createPostalAddress and
Set Billing screens of ordermgr.
(OFBIZ-10681)

If you create an EFT account from the quick finalyse page, at 
ordermgr/control/createPostalAddress the US states which are proposed by default 
are not the US states but all states. 
You still can pick one US state, but it's counter intuitive.

Thanks: Aman Mishra for the fix and finding of Set Billing screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849567 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 19:18:49 +00:00
Arun Patidar 136991d438 Added: Demo Data based on the proposed design to support replenishment planning through any inter-company facility.
(OFBIZ-7357)
For high level design and requirement details, please refer ticket (OFBIZ-6964)
Thanks Swapnil and Yashwant for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849547 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 12:19:19 +00:00
Akash Jain 3b0c4e3a8a Improved: User should be notified if product is already added in the compare list.
(OFBIZ-9727)
Thanks, Anushi Gupta for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849538 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 10:57:37 +00:00
Akash Jain 2d5af811ae Fixed: The child event added is not listed in the Child Work Efforts.
(OFBIZ-10111)

While if we add an existing event it is listed in the WorkEffort component

Thanks, Rubia Elza Joshep and Pradeep Choudhary for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849528 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 09:14:36 +00:00
Suraj Khurana 9501ccecae Fixed: Wrong title in table header of Config Option List.
(OFBIZ-10713)
The table header in the box containing the list of config options on top of the page Config Options has for the first column the title Config Item, it should be Config Option instead.
Thanks Sebastian Wachinger for reporting and Anushi Gupta for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849522 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 07:04:38 +00:00
Suraj Khurana f1c283ea98 Fixed: Classification group filter not working on find party screen.
(OFBIZ-10580)
Parties which are under the selected classification group should only be listed, there was code missing on groovy to handle this.
Thanks Anushi Gupta for reporting, Saurabh Dixit for providing the patch and Jacques Le Roux for reviewing it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849518 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 05:40:47 +00:00
Suraj Khurana defa1c383f Fixed: Incorrect PartyContactMechPurpose created while calling createUpdateBillingAddress service.
(OFBIZ-10588)

createUpdateBillingAddress and createUpdateShippingAddress services create incorrect 
PartyContactMechPurpose records with userLogin.partyId.

These services works well in case of when e-commerce logged-in user perform these operation.
But in-correct data is created by these services if called from admin or any other user.

I called createUpdateBillingAddress service from webtools and and didn't get desired results.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849514 13f79535-47bb-0310-9956-ffa450edef68
2018-12-22 04:55:20 +00:00
Deepak Dixit c81942f4e9 Removed: Duplicate request getAssociatedStateList, committed at r#1848469. We have getAssociatedStateList request in common-controller and common-controller included in humanres controller.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849467 13f79535-47bb-0310-9956-ffa450edef68
2018-12-21 12:48:26 +00:00
Aditya Sharma d6da4c8e17 Improved: Remove all the fk dependencies from stats entities to the business entities
(OFBIZ-10721)
stats related entities foreign key relation has been removed by Jacopo at r#1647271 and new group org.apache.ofbiz.stats introduced for stats related entity. Some remnants were still left in stats entities. 
Removed relations of Party, ContactMech and Content from ServerHit entity.
Removed relations of Content from ServerHitBin entity.
Removed relations of UserLogin from Visitor entity.
Thanks Jacques Le Roux and Deepak Dixit for the review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849275 13f79535-47bb-0310-9956-ffa450edef68
2018-12-19 08:23:29 +00:00
Deepak Dixit 55d6c0011d Improved: Convert updateContent and removeContent service to entity-auto
(OFBIZ-10625)
Thanks Aditya Sharma for reporting the issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849025 13f79535-47bb-0310-9956-ffa450edef68
2018-12-16 12:29:49 +00:00
Deepak Dixit 42d0e01cbc Improved: Convert createBudget service to entity-auto
(OFBIZ-10715)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849024 13f79535-47bb-0310-9956-ffa450edef68
2018-12-16 12:21:52 +00:00
Deepak Dixit 13c5258a85 Improved: request map to create party content in controller.xml exists twice
(OFBIZ-10699)
Renamed ambiguous controller request CreatePartyContent to EditPartyContent as per OOTB pattern.
Thanks Pierre Smits for reporting the issue and Jacques Le Roux for the the details and discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849021 13f79535-47bb-0310-9956-ffa450edef68
2018-12-16 11:37:36 +00:00
Jacques Le Roux d89b68face Improved: Splitting CommonRate and CommonProductRating
(OFBIZ-3844)

Simplifies and adds comments for clarity

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848923 13f79535-47bb-0310-9956-ffa450edef68
2018-12-14 10:38:18 +00:00
Jacques Le Roux 0d085d250a Improved: Add a warning on UI about the "X quantity of Product" condition in
Promo Rules
(OFBIZ-6032)

Add a sentence on the UI to explain what the current implementation really does: 
it always and only uses the "Is Greater Than" or "Is Greater Than or Equal to" 
operators. 

With this information in the UI people should not be confused. 
You can easily do a "Is Greater Than or Equal to" operator by changing the 
"condition value". For instance if you want a break at 10 put 9 in the condition 
value, etc.

I believe it's usable as is because the other operators don't make much sense 
(if any) with this rule condition. 

IMO, Only the "Is Greater Than" and Is Greater Than or Equal to" operators make 
sense with "X Quantities of Product".

For more details please see OFBIZ-1560

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848916 13f79535-47bb-0310-9956-ffa450edef68
2018-12-14 08:54:40 +00:00
Jacques Le Roux 5597b1d65a Improved: Splitting CommonRate and CommonProductRating
(OFBIZ-3844)

The CommonRate label is currently not used coherently throughout the application 
stack. The existing translations suggest that the commonly understood meaning of 
CommonRate is a rate as a tariff or day rate. However, in the product management 
GUI, the CommonRate label is used to demark the section where ProductRating 
setting are made.

The provided fix splits CommonRate into two labels, CommonRatioRate and 
CommonAssessRate (product rating). Also, the application/product/webapp/ form 
definition now references the CommonAssessRate label.

Thanks: Carsten Schinzer for report and patch, Adrian for suggestion and Markus
May for discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848834 13f79535-47bb-0310-9956-ffa450edef68
2018-12-13 09:43:03 +00:00
Jacques Le Roux 47954445b4 Improved: Replace Callable objects with lambda expressions
(OFBIZ-10488)

Remove unused imports

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848744 13f79535-47bb-0310-9956-ffa450edef68
2018-12-12 11:07:01 +00:00
Jacques Le Roux bbfc62d47a Improved: Fix or Silence various warnings
(OFBIZ-10701)

In order to detect potential issues early, the linting compiler option should be 
used by default and disabled with {{./gradlew -PXlint:none build}}.

Additionally it is important to reduce the number of warnings otherwise new 
warnings will remain unnoticed.

The warning related to the com.googlecode.concurrentlinkedhashmap dependency 
should resolves itself once we handle upgrade to Caffeine like proposed in 
OFBIZ-6747.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848673 13f79535-47bb-0310-9956-ffa450edef68
2018-12-11 13:33:49 +00:00
Jacques Le Roux 13f8b82f51 Improved: Replace Callable objects with lambda expressions
(OFBIZ-10488)

Since Java 8 it is possible to instantiate functional interfaces 
(interfaces with one non-static method) with lambda expressions instead 
of anonymous classes.

This replaces the creation of callable objects with lambda expressions.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848514 13f79535-47bb-0310-9956-ffa450edef68
2018-12-09 13:04:23 +00:00
Michael Brohl 7c67b85698 Improved: Implement dependency from "State/Province" Field to "Country"
in New Employee Form.
(OFBIZ-10326)

Thanks Benjamin Jugl and Julian Leichert for reporting and providing 
the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848469 13f79535-47bb-0310-9956-ffa450edef68
2018-12-08 13:36:26 +00:00
Michael Brohl f0550e7d7b Improved: Improve Accounting - AP container structure.
(OFBIZ-10464)

This fixes structural differences to make theme styling more consistent.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848461 13f79535-47bb-0310-9956-ffa450edef68
2018-12-08 11:58:43 +00:00
Michael Brohl 9c40f1988d Improved: Improve Accounting - AR container structure.
(OFBIZ-10469)

This fixes structural differences to make theme styling more consistent.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848459 13f79535-47bb-0310-9956-ffa450edef68
2018-12-08 11:53:54 +00:00
Michael Brohl 2d62835e24 Fallthrough in switch-case of eway/GatewayResponse.java
(OFBIZ-10642)

There were breaks missing in the switch case.

Thanks Benjamin Jugl for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848447 13f79535-47bb-0310-9956-ffa450edef68
2018-12-08 09:39:29 +00:00
Michael Brohl b5e8175fc0 Fixed: Missing nullcheck in service createContactListParty.
(OFBIZ-10653)

This fix adds a nullcheck for the partyEmail and provides a better 
errorMessage for the in-request service call. In addition the failing 
partyID will be logged for the admin to see.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848444 13f79535-47bb-0310-9956-ffa450edef68
2018-12-08 09:27:15 +00:00
Jacques Le Roux c2eca74acb Fixed: ConcurrentModificationException in ShoppingCart.cleanUpShipGroups
(OFBIZ-10696)

There's a for-loop over shipInfo and a call to clear inside this loop which 
leads to a ConcurrentModificationException

Thanks: Danny Trunk

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848336 13f79535-47bb-0310-9956-ffa450edef68
2018-12-06 16:15:54 +00:00
Jacques Le Roux 3d9bb8a0d2 Fixed: Error on createShoppingListItem when adding item to cart as anonymous
(OFBIZ-5157)

It can be reproduced by setting the product_store field autoSaveCart to 'Y' 
(In Store 9000 for the demo-data). Then the error occurs upon the first visit of 
the ecommerce-site, provided the user is not logged in.

    First Visit: no userLogin
    OFBiz wants to autosave list
    saving list requires userLogin (forsecuritycheck)
    result: error

Thanks: Mirko Vogelsmeier for report, Benjamin Jugl for the fix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848263 13f79535-47bb-0310-9956-ffa450edef68
2018-12-06 07:24:13 +00:00
Jacques Le Roux a8ae48be7b Fixed: Tax not added for order shipping or promotion
(OFBIZ-4160)

Removes AccountingTaxAuthorityCategoryAdvice and usage, now useless

Fixes possible "BigInteger divide by zero" in rateProductTaxCalc

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847715 13f79535-47bb-0310-9956-ffa450edef68
2018-11-29 13:09:53 +00:00
Jacques Le Roux cf1b75cd63 Fixed: Tax not added for order shipping or promotion
(OFBIZ-4160)

The r1070830 commit works fine. Except when there are shippings and promotions 
to calculate. Then the algorithm searches for all entries in 
TAX_AUTHORITY_RATE_PRODUCT that are available for the PRODUCT_STORE and 
TAX_AUTH (and apply to shipping/promotions). So all taxes (regular and reduced) 
are applied to the shipping costs, which naturally leads to a higher 
amount overall.

The correct procedure (at least in some countries in Europe) is to apply the 
tax for shipping  according to the shipped items. So, if regular tax applies 
to the good, regular tax is applied to the shipping-costs. If multiple items are 
shipped and they  have mixed taxes (some regular, some reduced) the calculation 
of the tax for shipping is weighted accordingly. 

jleroux: there are other ways to calculate VAT on shipping depending on 
countries and situations. This will be addressed by OFBIZ-10679

Thanks: Benjamin Jugl 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847670 13f79535-47bb-0310-9956-ffa450edef68
2018-11-28 19:29:04 +00:00
Jacques Le Roux bdf271a9b6 Fixed: Mime Type not supported Error while generating a Composite Pdf
(OFBIZ-9840)

When generating a Composite Pdf in the Content Manager an Error occurs :
 Mime Type not Supported
 Steps to recreate the Error Message:
Content Manager->CompDoc->Tree->View Instances->Tree-> Generate Composite Pdf

Thanks: Thanks Julian Leichert for report, Aman Mishra for the fix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847402 13f79535-47bb-0310-9956-ffa450edef68
2018-11-25 09:16:28 +00:00
Jacques Le Roux 535062cd47 Fixed: Instructions for Configurable PC don't work
(OFBIZ-10542)

This concerns only R16, R17 and the trunk. The "Instructions" button was not 
present in R13.

This kind of message shows:
Trunk:
<a href="javascript:showErrorAlert('The following errors occurred','');"
R16:
<a href="javascript:showErrorAlert(" the="" following="" errors="" occurred","")

The same exists for all configurable products, notably Gold Pizza

Thanks: Priya Sharma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847398 13f79535-47bb-0310-9956-ffa450edef68
2018-11-25 08:40:23 +00:00
Suraj Khurana 10598672b6 Fixed: Update Contact Mech ID with Billing Account not working.
(OFBIZ-10315)
Thanks Shikha Jaiswal for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847360 13f79535-47bb-0310-9956-ffa450edef68
2018-11-24 12:42:23 +00:00
Suraj Khurana 75df175dc2 Fixed: Force complete Purchase Order button throws error.
(OFBIZ-9912)
Thanks Priya Sharma for reporting and Amit Gadaley for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847352 13f79535-47bb-0310-9956-ffa450edef68
2018-11-24 09:50:04 +00:00
Suraj Khurana ecaf8ba25e Improved: Added data for 'ORDERMGR_CRQ_ADMIN' permissionId.
(OFBIZ-10574)
Thanks Deepak Nigam for providing the patch, Jacques Le Roux and Deepak Dixit for re-viewing it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847343 13f79535-47bb-0310-9956-ffa450edef68
2018-11-24 08:24:30 +00:00
Suraj Khurana 015d72b5f4 Fixed: Typo in shipmentTypeId. It should be INCOMING_SHIPMENT instead of INGOING_SHIPMENT.
(OFBIZ-6958)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847338 13f79535-47bb-0310-9956-ffa450edef68
2018-11-24 05:58:15 +00:00
Nicolas Malin c7d7b23144 Improved: Migrate from minilang to entity-auto createQuoteWorkEffort et deleteQuoteWorkEffort.
(OFBIZ-10553)
But createQuoteWorkEffort is not a crud service on entity QuoteWorkEffort because it is linked to a seca to call createWorkeffort before if a workEffortId is not present in context.

<eca service="createQuoteWorkEffort" event="in-validate">
   <condition field-name="workEffortId" operator="is-empty"/>
   <action service="createWorkEffort" mode="sync"/>
</eca>

I converted this service createQuoteWorkEffort has a real Crud service and create an other ensureWorkEffortAndCreateQuoteWorkEffort to simulate the attendee process. Now we have a coherent service naming and not surprise for developer .
To manage the service createQuoteWorkEffort as deprecated, I define it twice

     <service name="createQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="entity-auto" invoke="create" auth="true">
        <deprecated use-instead="ensureWorkEffortAndCreateQuoteWorkEffort" since="Upcoming Release">
            use createQuoteWorkEffort to create a workeffort has been deprecated for best pratice naming reason, use ensureWorkEffortAndCreateQuoteWorkEffort instead.
            Now createQuoteWorkEffort work as a crud service on QuoteWorkEffort
        </deprecated>
    </service>
    <service name="createQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="entity-auto" invoke="create" auth="true">
        <description>Create a new QuoteWorkEffort</description>
        <required-permissions join-type="AND">
            <check-permission permission="ORDERMGR" action="_CREATE"/>
        </required-permissions>
        <auto-attributes mode="IN" include="pk"/>
     </service>

First to alert on deprecation and second ensure that the definition work fine.
In log we will have an alert on the deprecation and an alert on the duplicated definition during the deprecation time.

Thanks to Antoine Ouvrard, Gil Portenseigne, Leila Mekika and Mathieu Lirzin for their review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847056 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 20:19:34 +00:00
Jacques Le Roux 0af9ffe58e Fixed: Manufacturing BOM search returning duplicate entries in search results
(OFBIZ-10648)

Bill of Materials search returning duplicate entries in search results.

Test Steps:
1. Login to Manufacturing application.
2. Navigate to Bill of Materials tab.
3. Observe the issue in Search results.

Expected Result:
Unique products should be displayed on Bill of Materials search results.
Actual Result:
Bill of Materials search returning duplicate entries in search results. 
The distinct constraint is missing in FindProductBom.groovy find query.

Thanks: Aditya Barve

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846594 13f79535-47bb-0310-9956-ffa450edef68
2018-11-14 17:31:27 +00:00
Jacques Le Roux 3190e0ff2e Improved: Create patch for removal of IDEAL code in framework
(OFBIZ-5444)

Removes all iDEAL specifics from the framework (actually only applications)

Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846227 13f79535-47bb-0310-9956-ffa450edef68
2018-11-09 10:20:10 +00:00
Jacques Le Roux ebc72d0e65 Improved: no functional change.
As annouced on dev ML removes unused code related to rememberMe.

I noticed this block of code in LoginEvents::storeLogin

        if ("Y".equals(request.getParameter("rememberMe"))) {
            setUsername(request, response);
        }

It was added by Andrew long ago: https://markmail.org/message/dmqqxse65inh6amr
But rememberMe is never created  in code so LoginEvents::setUsername is never used.
This removes this  block of code and the 2 related methods below.

Also automatically clean imports

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846221 13f79535-47bb-0310-9956-ffa450edef68
2018-11-09 09:32:56 +00:00
Jacques Le Roux 67bb8465e8 Fixed: Content - Able to add empty Forum Group
(OFBIZ-10615)

Steps to Regenerate issue:
 # Login to demo-trunk or demo-stable instance with details:
URL - [https://demo-trunk.ofbiz.apache.org/content/control/findForumGroups] 
admin/ ofbiz  OR
URl - [https://demo-stable.ofbiz.apache.org/content/control/createForumGroup]
admin/ ofbiz
 # Go to Content > Forum and try to create new forum group.
 # do not enter Forum Group Name and Description.
 # Click on the Submit button.

Actual - System allowed the user to enter an empty forum group. 
This issue is occurring at demo-trunk and demo-stable instance. 

Expected - Empty Forum group should not be added. If the user tries to do this
s/he should not be allowed and proper validation error message should display.

Thanks: Sanjay Yadav

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846214 13f79535-47bb-0310-9956-ffa450edef68
2018-11-09 08:11:46 +00:00
Jacques Le Roux 82174798b0 Fixed: CatalogServices #duplicateProductCategory doesn't check for
existing categories
(OFBIZ-10328)

This method just crashes, if there is a category which has the same name as 
the one the user is trying to create.
There should be a check for existing attributes and a clean return, 
no exception throwing.

Thanks: Benjamin Jugl 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846158 13f79535-47bb-0310-9956-ffa450edef68
2018-11-08 15:07:44 +00:00
Jacques Le Roux 910a603487 Fixed: CatalogServices #createProductCategoryAttribute doesn't check for
existing attributes
(OFBIZ-10327)

This method just crashes, if there is an attribute which has the same name as 
the one the user is trying to create.
There should be a check for existing attributes and a clean return, 
no exception throwing.

Thanks: Dennis Balkir for report and Benjamin Jugl for patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846156 13f79535-47bb-0310-9956-ffa450edef68
2018-11-08 15:02:13 +00:00
Jacques Le Roux dab64a9a3b Fixed: Stores can't be modified at catalog/control/updateProductStore
(OFBIZ-10567)

I amended the English version of FieldDescription.ProductStore.visualThemeId

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846109 13f79535-47bb-0310-9956-ffa450edef68
2018-11-08 09:23:47 +00:00
Jacques Le Roux cbf06513a7 Fixed: Stores can't be modified at catalog/control/updateProductStore
(OFBIZ-10567)

I forgot the label, here it is.
I kept the old one, could be useful elsewhere. 
I amended the English version.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846107 13f79535-47bb-0310-9956-ffa450edef68
2018-11-08 09:17:37 +00:00
Jacques Le Roux ecacf6826a Fixed: Stores can't be modified at catalog/control/updateProductStore
(OFBIZ-10567)

This is related with the common-theme introduction.

There are 2 fields named visualThemeId in the data model. The one in 
ProductStore entity existed before the common-theme introduction with the new 
entity VisualTheme. When the theme is initialised with InitTheme.groovy it sets 
the context.visualThemeId value if it does not exist yet with 
parameters.visualThemeId. At this point things get confused and the 
backend theme used is replaced by the ecommerce theme defined for the 
productStore.

I think it would overwhelming to change the data model when only the 
EditProductStore form and updateProductStore service are concerned. 

So here is a very simple workaround where visualThemeId is replaced by 
ecomThemeId in the EditProductStore form and updateProductStore service.

If someone prefers to change the data model and related code feel free to revert, 
reopen the Jira and do.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846097 13f79535-47bb-0310-9956-ffa450edef68
2018-11-08 07:18:43 +00:00
Jacques Le Roux 611d30f3cd Fixed: Stores can't be modified at catalog/control/updateProductStore
(OFBIZ-10567)

Removes a hidden duplicate productStoreId field introduced with  OFBIZ-6924

This does not completely fixes the issue but allow to get ahead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845995 13f79535-47bb-0310-9956-ffa450edef68
2018-11-07 09:36:50 +00:00
Jacques Le Roux 79eaa51f28 Fixed: Missing Security and Cache Headers in CMS Events
Fixed:
(OFBIZ-10597)

While rendering the view through the controller request we set the important 
security headers like x-frame-options, strict-transport-security, 
x-content-type-options, X-XSS-Protection and Referrer-Policy etc. in the 
response object. (Please see the 'rendervView' method of RequestHandler class.) 
 
In the similar line, we set the cache related headers like Expires, 
Last-Modified, Cache-Control, Pragma.
 
But these security headers are missing in the pages rendered through CMS. 
(Please visit the CmsEvents class).
 
These headers are very crucial for the security of the application as they help 
to prevent various security threats like cross-site scripting, 
cross-site request forgery, clickjacking etc. 

Thanks: Deepak Nigam for initial patch and review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845420 13f79535-47bb-0310-9956-ffa450edef68
2018-11-01 09:39:17 +00:00
Rishi Solanki c51e0e7358 Improved: Add an ofbizsetup prefix to the data files names used by the ofbizsetup app.
(OFBIZ-10598)

Added prefix to files as OfbizSetup to better understand its usage.
Changes the file names and adds a missing files used in the SetupEvents xml events to setup ofbiz. 

Thanks to Jacques for reporting the issue and help.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845104 13f79535-47bb-0310-9956-ffa450edef68
2018-10-29 11:24:26 +00:00
Suraj Khurana 9ca5823a8a Improved: Consistency and Readability improvements for include-menu tag.
(OFBIZ-8972)
Thanks Ankush Upadhyay for reporting and Devanshu Vyas for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845088 13f79535-47bb-0310-9956-ffa450edef68
2018-10-29 08:29:43 +00:00
Suraj Khurana 0c59f7ac61 Improved: Consistency and Readability improvements for event tag (controller.xml).
(OFBIZ-8965)
Thanks Ankush Upadhyay for reporting and Devanshu Vyas for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845086 13f79535-47bb-0310-9956-ffa450edef68
2018-10-29 08:14:55 +00:00
Suraj Khurana 61b451dd0b Improved: Consistency and Readability improvements for option (form widget) tag.
(OFBIZ-8930)
Thanks Devanshu Vyas for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845081 13f79535-47bb-0310-9956-ffa450edef68
2018-10-29 08:02:45 +00:00