Author: pranayp
Date: Sat Feb 21 12:12:31 2015
New Revision: 1661334

URL: http://svn.apache.org/r1661334
Log:
[OFBIZ-6089] - Fixed error in locating service ensureNaPartyRoleTo by removing 
it and using ensurePartyRoleTo and ensurePartyRoleFrom services instead.
Thanks Deepak Dixit for reporting the issue and providing the patch.

Modified:
    ofbiz/trunk/applications/party/servicedef/secas.xml
    ofbiz/trunk/applications/party/servicedef/services.xml

Modified: ofbiz/trunk/applications/party/servicedef/secas.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/secas.xml?rev=1661334&r1=1661333&r2=1661334&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/secas.xml Sat Feb 21 12:12:31 2015
@@ -40,11 +40,11 @@ under the License.
     <!-- before running the createPartyRelationship service, make sure the 
party is in the _NA_ role if that is the desired roleTypeId for From or To -->
     <eca service="createPartyRelationship" event="invoke">
         <condition field-name="roleTypeIdFrom" operator="equals" value="_NA_"/>
-        <action service="ensureNaPartyRoleFrom" mode="sync"/>
+        <action service="ensurePartyRoleFrom" mode="sync"/>
     </eca>
     <eca service="createPartyRelationship" event="invoke">
         <condition field-name="roleTypeIdTo" operator="equals" value="_NA_"/>
-        <action service="ensureNaPartyRoleTo" mode="sync"/>
+        <action service="ensurePartyRoleTo" mode="sync"/>
     </eca>
 
     <!-- party contact mech service ECAs -->

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=1661334&r1=1661333&r2=1661334&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Sat Feb 21 12:12:31 
2015
@@ -282,11 +282,6 @@ under the License.
         <description>Ensure that the party is in the _NA_ role.</description>
         <attribute name="partyId" type="String" mode="IN" optional="false"/>
     </service>
-    <service name="ensureNaPartyRoleFrom" engine="simple"
-            
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml"
 invoke="ensureNaPartyRole" auth="true">
-        <description>Ensure that the party indicate by partyIdFrom is in the 
_NA_ role.</description>
-        <attribute name="partyIdFrom" type="String" mode="IN" 
optional="false"/>
-    </service>
     <service name="ensurePartyRoleFrom" engine="simple"
             
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml"
 invoke="ensureNaPartyRole" auth="true">
         <description>Ensure that the party indicate by partyIdFrom is in the 
roleTypeIdFrom specifc role. If roleTypeIdFrom isn't present use 
_NA_</description>


Reply via email to