You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by di...@apache.org on 2015/09/19 11:32:32 UTC
svn commit: r1703969 - in /ofbiz/trunk/applications/party:
webapp/partymgr/WEB-INF/controller.xml
webapp/partymgr/party/profileblocks/Contact.ftl
widget/partymgr/PartyScreens.xml
Author: diveshdutta
Date: Sat Sep 19 09:32:32 2015
New Revision: 1703969
URL: http://svn.apache.org/viewvc?rev=1703969&view=rev
Log:
[OFBIZ-6438] Fixed issue: PartyGeoLocation shows menus when accessed. Thanks Pravin for your patch and thanks Pierre for reporting the issue.
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl
ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=1703969&r1=1703968&r2=1703969&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Sat Sep 19 09:32:32 2015
@@ -1159,6 +1159,11 @@ under the License.
<response name="success" type="view" value="PartyGeoLocation"/>
<response name="error" type="view" value="viewprofile"/>
</request-map>
+ <request-map uri="GetPartyGeoLocation">
+ <security https="true" auth="true"/>
+ <response name="success" type="view" value="GetPartyGeoLocation"/>
+ <response name="error" type="view" value="viewprofile"/>
+ </request-map>
<request-map uri="addGeoLocation">
<security https="true" auth="true"/>
<response name="success" type="view" value="addGeoLocation"/>
@@ -1376,6 +1381,7 @@ under the License.
<view-map name="PartyFinancialHistory" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#PartyFinancialHistory"/>
<view-map name="Preferences" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#Preferences"/>
<view-map name="PartyGeoLocation" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#PartyGeoLocation"/>
+ <view-map name="GetPartyGeoLocation" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#GetPartyGeoLocation"/>
<view-map name="UpdateCommOrders" type="screen" page="component://party/widget/partymgr/CommunicationEventScreens.xml#UpdateCommOrders"/>
<view-map name="UpdateCommProducts" type="screen" page="component://party/widget/partymgr/CommunicationEventScreens.xml#UpdateCommProducts"/>
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl?rev=1703969&r1=1703968&r2=1703969&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl Sat Sep 19 09:32:32 2015
@@ -65,7 +65,7 @@ under the License.
<#if contactMechPurposeType?has_content>
<#assign popUptitle = contactMechPurposeType.get("description", locale) + uiLabelMap.CommonGeoLocation>
</#if>
- <a href="javascript:popUp('<@o...@ofbizUrl>', '${popUptitle!}', '450', '550')" class="buttontext">${uiLabelMap.CommonGeoLocation}</a>
+ <a href="javascript:popUp('<@o...@ofbizUrl>', '${popUptitle!}', '450', '550')" class="buttontext">${uiLabelMap.CommonGeoLocation}</a>
</#if>
</#if>
<#elseif "TELECOM_NUMBER" = contactMech.contactMechTypeId>
Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=1703969&r1=1703968&r2=1703969&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Sat Sep 19 09:32:32 2015
@@ -1157,6 +1157,22 @@ under the License.
</widgets>
</section>
</screen>
+ <screen name="GetPartyGeoLocation">
+ <section>
+ <actions>
+ <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
+ <set field="titleProperty" value="PageTitlePartyGeoLocation"/>
+ <set field="tabButtonItem" value="PartyGeoLocation"/>
+ <script location="component://party/webapp/partymgr/WEB-INF/actions/party/PartyGeoLocation.groovy"/>
+ </actions>
+ <widgets>
+ <label>${uiLabelMap.CommonLatitude} ${latestGeoPoint.latitude}</label>
+ <label>${uiLabelMap.CommonLongitude} ${latestGeoPoint.longitude}</label>
+ <label>${uiLabelMap.CommonElevation} ${latestGeoPoint.elevation} ${elevationUomAbbr}</label>
+ <include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
+ </widgets>
+ </section>
+ </screen>
<screen name="EditGeoLocation">
<section>
<actions>