Skip to content

Commit c84656d

Browse files
committed
Assign item group to technician group
1 parent 71ee797 commit c84656d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static function getIcon(): string
7979

8080
public static function useConfig(CommonDBTM $item): void
8181
{
82-
if ($item->fields['type'] == \CommonITILActor::OBSERVER) {
82+
if ($item->fields['type'] == \CommonITILActor::ASSIGN) {
8383
return;
8484
}
8585
$moconfig = new Config();
@@ -180,7 +180,7 @@ public static function addItemGroups(CommonDBTM $item): void
180180
$criteria = [
181181
'groups_id' => $g['groups_id'],
182182
$mapping['foreign_key'] => $item->fields[$mapping['foreign_key']],
183-
'type' => CommonITILActor::OBSERVER,
183+
'type' => CommonITILActor::ASSIGN,
184184
];
185185

186186
if (!$gitem->getFromDBByCrit($criteria)) {

tests/Units/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public function testTakeItemGroups(): void
639639
$groups = $ticket_group->find(
640640
[
641641
'tickets_id' => $ticket->getID(),
642-
'type' => \CommonITILActor::OBSERVER,
642+
'type' => \CommonITILActor::ASSIGN,
643643
],
644644
);
645645
$this->assertCount(1, $groups);

0 commit comments

Comments
 (0)