You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2011/07/20 11:11:57 UTC
svn commit: r1148661 - in /ofbiz/trunk/applications/party/webapp/partymgr:
WEB-INF/actions/party/GetGeoLocation.groovy party/editGeoLocation.ftl
Author: hansbak
Date: Wed Jul 20 09:11:56 2011
New Revision: 1148661
URL: http://svn.apache.org/viewvc?rev=1148661&view=rev
Log:
update geolocation, created a new one and did not update the existing one: fixed
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetGeoLocation.groovy
ofbiz/trunk/applications/party/webapp/partymgr/party/editGeoLocation.ftl
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetGeoLocation.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetGeoLocation.groovy?rev=1148661&r1=1148660&r2=1148661&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetGeoLocation.groovy (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetGeoLocation.groovy Wed Jul 20 09:11:56 2011
@@ -6,6 +6,7 @@ import org.ofbiz.party.contact.ContactHe
import org.ofbiz.common.geo.*;
if (partyId) {
+ context.partyId = partyId;
latestGeoPoint = GeoWorker.findLatestGeoPoint(delegator, "PartyAndGeoPoint", "partyId", partyId, null, null);
if (latestGeoPoint) {
context.geoPointId = latestGeoPoint.geoPointId;
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/editGeoLocation.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/editGeoLocation.ftl?rev=1148661&r1=1148660&r2=1148661&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/editGeoLocation.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/editGeoLocation.ftl Wed Jul 20 09:11:56 2011
@@ -114,8 +114,8 @@ under the License.
</form>
<br/><br/>
<form id="updateMapForm" method="post" action="<@o...@ofbizUrl>">
- <input type="hidden" name="partyId" value="${parameters.partyId?if_exists}"/>
- <input type="hidden" name="geoPointId" value="${parameters.geoPointId?if_exists}"/>
+ <input type="hidden" name="partyId" value="${partyId?if_exists}"/>
+ <input type="hidden" name="geoPointId" value="${geoPointId?if_exists}"/>
<input type="hidden" name="lat" id="lat"/>
<input type="hidden" name="lng" id="lng"/>
<input type="submit" id="createMapButton" class="smallSubmit" value="${uiLabelMap.CommonSubmit}">