On Wed, Mar 09, 2011 at 02:19:15PM -0500, Miguel A. Castro wrote:
>    I load my database of version 0.8.4 in the new RC2 version and I can't see
>    the interfaces on submaps when I select a submap in the view maps. It's
>    load a events.
Took me a little while to find this.
  Views: Maps
  Click on a submap, gives wrong mapid

The patch is attached that fixes it.  Basicallly there is the map your
screen is on, which has submaps.  Clicking on the link was giving the
url for the map you were viewing rather than the one you were clicking.

 - Craig
-- 
Craig Small VK2XLZ    http://www.enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux      http://www.debian.org/       csmall at : debian.org
GPG fingerprint:       1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
diff --git a/htdocs/views/source_maps.class.php 
b/htdocs/views/source_maps.class.php
index 2493054..ddb99e3 100644
--- a/htdocs/views/source_maps.class.php
+++ b/htdocs/views/source_maps.class.php
@@ -108,9 +108,10 @@ class Source_maps extends Source_base
 
   function urls(&$View, &$item)
   {
-    $urls = array(
-      'events' => array('Events', "events.php?map_id=$View->map_id", 
'text.png'),
-      'map' => array ('View Interfaces', 
"frame_interfaces.php?break_by_card=0&break_by_zone=0events_update=0&map_id=$View->map_id",
 'int1.png')
+      $id = $item['id'];
+      $urls = array(
+        'events' => array('Events', "events.php?map_id=$id", 'text.png'),
+      'map' => array ('View Interfaces', 
"frame_interfaces.php?break_by_card=0&break_by_zone=0events_update=0&map_id=$id",
 'int1.png')
     );
     return $urls;
   } //urls()
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to