svn commit: r1148661 - in /ofbiz/trunk/applications/party/webapp/partymgr: WEB-INF/actions/party/GetGeoLocation.groovy party/editGeoLocation.ftl

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

svn commit: r1148661 - in /ofbiz/trunk/applications/party/webapp/partymgr: WEB-INF/actions/party/GetGeoLocation.groovy party/editGeoLocation.ftl

hansbak-2
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="<@ofbizUrl>editGeoLocation</@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}">