Improved: Mandatory contact number when create/update a TelecumNumber (OFBIZ-11110)

It's possible that create a Telecum number without contactNumber that appears as an inconsistency.

Thanks: Rashi Dhagat for this issue
This commit is contained in:
Nicolas Malin
2021-09-27 16:57:43 +02:00
parent 48ecfade8e
commit 7cc848cfab
@@ -509,6 +509,7 @@ under the License.
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="false"/>
<override name="contactNumber" optional="false"/>
</service>
<service name="updateTelecomNumber" engine="simple"
location="component://party/minilang/contact/ContactMechServices.xml" invoke="updateTelecomNumber" auth="true">
@@ -524,6 +525,7 @@ under the License.
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
<override name="contactNumber" optional="false"/>
</service>
<service name="createEmailAddress" engine="simple"
location="component://party/minilang/contact/ContactMechServices.xml" invoke="createEmailAddress" auth="true">