Fixed: Make ruleName field in PriceForms.xml#AddPriceRules safe (OFBIZ-12098)

I noticed an issue due to entity-auto. Unlike with a standard service you can't
protect fields using allow-html="safe" except by overriding fields. So in case
this must be done one by one...

An example is ruleName field in PriceForms.xml#AddPriceRules with
createProductPriceRule and updateProductPriceRule services

This fixes this only case...
Also removes trailing blanks and only that (by IDE setting)
This commit is contained in:
Jacques Le Roux
2020-12-20 11:14:23 +01:00
parent 4e400fb47a
commit 8bdf4d447e
@@ -79,6 +79,7 @@ under the License.
<permission-service service-name="productPriceGenericPermission" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="ruleName" optional="false" allow-html="safe"/>
</service>
<service name="deleteProductPriceRule" default-entity-name="ProductPriceRule" engine="entity-auto" invoke="delete" auth="true">
<description>Delete a ProductPriceRule</description>