IDEMPIERE-147 GoogleMap to show Locators / Route button just works if logged in with an organization

This commit is contained in:
Carlos Ruiz 2013-03-11 21:06:44 -05:00
parent 78ed339b63
commit 485a66164a
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ public class WLocationDialog extends Window implements EventListener<Event>
if (MLocation.LOCATION_MAPS_URL_PREFIX == null)
toLink.setVisible(false);
pnlLinks.appendChild(toRoute);
if (MLocation.LOCATION_MAPS_ROUTE_PREFIX == null)
if (MLocation.LOCATION_MAPS_ROUTE_PREFIX == null || Env.getAD_Org_ID(Env.getCtx()) <= 0)
toRoute.setVisible(false);
pnlLinks.setWidth("100%");
pnlLinks.setStyle("text-align:left");