Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed May 22, 2024
1 parent 75e34b4 commit bb82ab1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion install/migrations/update_10.0.x_to_11.0.0/assignable_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
'table' => 'glpi_appliances',
'rightname' => 'appliance'
],
'Cable' => [
'table' => 'glpi_cables',
'rightname' => 'cable_management'
],
'CartridgeItem' => [
'table' => 'glpi_cartridgeitems',
'rightname' => 'cartridge'
Expand Down Expand Up @@ -112,6 +116,14 @@
'table' => 'glpi_networkequipments',
'rightname' => 'networking'
],
'PassiveDCEquipment' => [
'table' => 'glpi_passivedcequipments',
'rightname' => 'datacenter'
],
'PDU' => [
'table' => 'glpi_pdus',
'rightname' => 'datacenter'
],
'Peripheral' => [
'table' => 'glpi_peripherals',
'rightname' => 'peripheral'
Expand Down Expand Up @@ -172,7 +184,6 @@
$migration->addRight($itemtype_rightname, READ_ASSIGNED, [$itemtype_rightname => READ]);
$migration->addRight($itemtype_rightname, UPDATE_ASSIGNED, [$itemtype_rightname => UPDATE]);


// Add missing `users_id`/`users_id_tech` fields on assignable items
$migration->addField($itemtype_table, 'users_id', 'fkey');
$migration->addKey($itemtype_table, 'users_id');
Expand Down
1 change: 1 addition & 0 deletions src/ConsumableItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
*/

use Glpi\Application\View\TemplateRenderer;
use Glpi\DBAL\QueryExpression;
use Glpi\DBAL\QueryFunction;
use Glpi\Features\AssetImage;
use Glpi\Features\AssignableItem;
Expand Down

0 comments on commit bb82ab1

Please sign in to comment.