You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2011-09-23 11:39:48

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Bug report for Bay Management v1.2.0. [Solved]

Hello to all,

   My GLPI v0.80 test environment is as following:

      .- The server
         .- Ubuntu Server 10.04.3 LTS (Lucid Lynx) - Architecture AMD64
         .- OCS Inventory NG Management Server v2.0
         .- GLPI v0.80.31
            .- GLPI v0.80.31 Agents
               .- FusionInventory for GLPI v2.4.0
                  .- FusionInventory v2.4.0
                  .- FusionInventory INVENTORY v2.4.0
                  .- FusionInventory SNMP v2.4.0
               .- Shell Commands v1.4.0
               .- Bays Management v1.2.0

      .- The FusionInventory Agents
         .- FusionInventory-Agent v2.1.11-1 (for Windows)
         .- FusionInventory-Agent v2.1.10-1 (for Windows)
         .- FusionInventory-Agent v2.1.9-3 (for Windows)
         .- FusionInventory-Agent v2.1.10-1 (for GNU/Linux)
         .- FusionInventory-Agent v2.1.9-3 (for GNU/Linux)


   Description:

   I have defined a new location hierarchy (Home> Setup> Dropdowns> Bays Management > Location) like this:

   

      CPD                      ||  CPD
      |-- Zone A               ||  CPD > Zone A
      |   |-- Corridor #1      ||  CPD > Zone A > Corridor #1 
      |   |   |-- Position #1  ||  CPD > Zone A > Corridor #1 > Position #1
      |   |   |-- Position #2  ||  CPD > Zone A > Corridor #1 > Position #2
      |   |   |-- ...          ||  ...
      |   |   `-- Position #n  ||  CPD > Zone A > Corridor #1 > Position #n
      |   |   ...              ||  ...
      |   `-- Corridor #n      ||  CPD > Zone A > Corridor #n
      |       |-- Position #1  ||  CPD > Zone A > Corridor #n > Position #1  
      |       |-- Position #2  ||  CPD > Zone A > Corridor #n > Position #2
      |       |-- ...          ||  ...
      |       `-- Position #n  ||  CPD > Zone A > Corridor #2 > Position #n
      |   ... ...              ||  ...
      `-- Zone Z               ||  CPD > Zone Z
          |-- Corridor #1      ||  CPD > Zone Z > Corridor #1 
          |   |-- Position #1  ||  CPD > Zone Z > Corridor #1 > Position #1
          |   |-- Position #2  ||  CPD > Zone Z > Corridor #1 > Position #2
          |   |-- ...          ||  ...
          |   `-- Position #n  ||  CPD > Zone Z > Corridor #1 > Position #n
          |   ...              ||  ... 
          `-- Corridor #n      ||  CPD > Zone Z > Corridor #n
              |-- Position #1  ||  CPD > Zone Z > Corridor #n > Position #1 
              |-- Position #2  ||  CPD > Zone Z > Corridor #n > Position #2
              |-- ...          ||  ...
              `-- Position #n  ||  CPD > Zone Z > Corridor #n > Position #n
   

   After that, I have created a new 'Rack #1' and I have assigned value to these fields:

   

      .- Entity:                    Sociedad Imaginaria, S.I. > Headquarter
      .- Location (Common):         Build #1 > Floor #1 > Section #1 > Room #1
      .- Location (Bay Management): CPD > Zone A > Corridor #1 > Position #1
      .- and other
   

   The bug exist when I go to 'Home> Plugins> Bays Management' and It shows the table.  The columns/values are:

   

      .- Name:         Rack #1
      .- Entity:       Sociedad Imaginaria, S.I. > Headquarter
      .- Place:        Build #1 > Floor #1 > Section #1 > Room #1
      .- Location:     Position #1
                          ^^^
                            `-------- (Show the last level of Bay Management location hierarchy)
                                       ********************************************************
   

   The columns/values should be:

   

      .- Name:         Rack #1
      .- Entity:       Sociedad Imaginaria, S.I. > Headquarter
      .- Place:        Build #1 > Floor #1 > Section #1 > Room #1
      .- Location:     CPD > Zone A > Corridor #1 > Position #1
   

   Tsmr, Could you fix it? Thanks in advance.

Last edited by tabad (2011-09-23 14:07:00)


Tomás Abad

Offline

#2 2011-09-23 14:06:38

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: Bug report for Bay Management v1.2.0. [Solved]

I have been 'speaking' with Tsmr the IRC channel. This has been the short conversation...

[11:57] <tabad>  I have written a new bug report for Bay Management v1.2.0 in http://www.glpi-project.org/forum/viewt … p?id=26014
[11:58] <tabad> I just wanted you to know.
[12:01] <Tsmr> inc/rack.class.php
[12:01] <Tsmr> row 83
[12:02] <Tsmr> $tab[3]['field'] = 'name'; -> $tab[3]['field'] = 'completename';
[12:02] <Tsmr> can you test it ?

and this is the patch file with the solution.

*** ./glpi/plugins/racks/inc/rack.class.php.org    2011-06-08 13:27:14.000000000 +0200
--- ./glpi/plugins/racks/inc/rack.class.php.new    2011-09-23 13:56:30.773663347 +0200
***************
*** 81,87 ****
        $tab[2]['name'] = $LANG['plugin_racks'][3];
  
        $tab[3]['table'] = 'glpi_plugin_racks_roomlocations';
!       $tab[3]['field'] = 'name';
        $tab[3]['name'] = $LANG['plugin_racks'][11];
  
        $tab[4]['table'] = $this->getTable();
--- 81,87 ----
        $tab[2]['name'] = $LANG['plugin_racks'][3];
  
        $tab[3]['table'] = 'glpi_plugin_racks_roomlocations';
!       $tab[3]['field'] = 'completename';
        $tab[3]['name'] = $LANG['plugin_racks'][11];
  
        $tab[4]['table'] = $this->getTable();
***************
*** 483,486 ****
     }
  }
  
! ?>
\ No newline at end of file
--- 483,486 ----
     }
  }
  
! ?>

   Thousands of thanks, Tsmr!


Tomás Abad

Offline

Board footer

Powered by FluxBB