File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 42
42
use Glpi \Helpdesk \Tile \LinkableToTilesInterface ;
43
43
use Glpi \Helpdesk \Tile \TilesManager ;
44
44
use Glpi \RichText \UserMention ;
45
- use Glpi \Search \SearchOption ;
46
45
use Glpi \Toolbox \ArrayNormalizer ;
47
46
48
47
/**
@@ -3747,10 +3746,11 @@ public function rawSearchOptions()
3747
3746
];
3748
3747
3749
3748
// Add custom asset definition rights
3749
+ $ custom_assets_right_offset = 1000 ;
3750
3750
foreach (AssetDefinitionManager::getInstance ()->getDefinitions (true ) as $ definition ) {
3751
3751
$ asset = $ definition ->getAssetClassName ();
3752
3752
$ tab [] = [
3753
- 'id ' => SearchOption:: generateAProbablyUniqueId ( $ asset ),
3753
+ 'id ' => $ custom_assets_right_offset + $ definition -> getID ( ),
3754
3754
'table ' => 'glpi_profilerights ' ,
3755
3755
'field ' => 'rights ' ,
3756
3756
'name ' => $ asset ::getTypeName (1 ),
You can’t perform that action at this time.
0 commit comments