Only look up +ve ids
authorAndy Allan <gravitystorm@gmail.com>
Thu, 7 Oct 2010 14:32:40 +0000 (14:32 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Thu, 7 Oct 2010 14:32:40 +0000 (14:32 +0000)
net/systemeD/potlatch2/TagViewer.mxml

index 72716a1..ffbbc57 100644 (file)
       }
 
       public function openEntityPage():void {
-          if (selectedEntity != null)
-              // TODO: make this robust against -ve ids
+          if (selectedEntity != null && selectedEntity.id >= 0)
               // TODO: make this choose the correct server
               navigateToURL(new URLRequest('http://www.openstreetmap.org/browse/'+selectedEntity.getType()+'/'+selectedEntity.id), "potlatch_browse");
       }