svn commit: r1803525 - /ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1803525 - /ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml

Deepak Dixit-5
Author: deepak
Date: Mon Jul 31 12:17:55 2017
New Revision: 1803525

URL: http://svn.apache.org/viewvc?rev=1803525&view=rev
Log:
Fixed: Can't Create a new PartyAcctgPreference in 16.11.03 (OFBIZ-9542)
- Added missing code to set organizationPartyId
 Thanks Sharan for reporting the issue.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml?rev=1803525&r1=1803524&r2=1803525&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/widget/GlSetupScreens.xml Mon Jul 31 12:17:55 2017
@@ -24,6 +24,7 @@ under the License.
     <screen name="CommonGlSetupDecorator">
         <section>
             <actions>
+                <set field="organizationPartyId" value="${groovy:if(parameters.organizationPartyId!=null) return parameters.organizationPartyId else return parameters.get('ApplicationDecorator|organizationPartyId')}"/>
                 <set field="tabButtonItemTop" value="Admin"/>
                 <entity-one entity-name="PartyNameView" value-field="currentOrganization" auto-field-map="false">
                     <field-map field-name="partyId" value="${groovy:if(parameters.organizationPartyId!=null) return parameters.organizationPartyId else return parameters.get('ApplicationDecorator|organizationPartyId')}"/>
@@ -205,7 +206,8 @@ under the License.
                 <set field="labelTitleProperty" value="${uiLabelMap.AccountingPreference}"/>
                 <set field="tabButtonItem" value="PartyAcctgPreference"/>
                 <property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
-                <set field="partyId" value="${groovy:if(parameters.organizationPartyId!=null) return parameters.organizationPartyId else return parameters.get('ApplicationDecorator|organizationPartyId')}"/>
+                <set field="organizationPartyId" value="${groovy:if(parameters.organizationPartyId!=null) return parameters.organizationPartyId else return parameters.get('ApplicationDecorator|organizationPartyId')}"/>
+                <set field="partyId" from-field="organizationPartyId"/>
                 <entity-one entity-name="PartyAcctgPreference" value-field="partyAcctgPreference"/>
             </actions>
             <widgets>