Skip to content

Commit

Permalink
Fixes #765
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronix committed May 20, 2022
1 parent 8f14ebc commit 528b553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- Time of Zaps inserted is now saved.
- Fixed unable to unassign agent from the task detail screen.
- Fixed speed graph incorrect when status timer is different from servers default.
- Fixed access group not being changed on Hashlist detailed screen.

## Enhancements

Expand Down
4 changes: 4 additions & 0 deletions src/inc/utils/HashlistUtils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,10 @@ public static function changeAccessGroup($hashlistId, $accessGroupId, $user) {
throw new HTException("No access to this group!");
}

$qF = new QueryFilter(Hashlist::HASHLIST_ID, $hashlist->getId(), "=");
$uS = new UpdateSet(Hashlist::ACCESS_GROUP_ID, $accessGroup->getId(), "=");
Factory::getHashlistFactory()->massUpdate([Factory::FILTER => $qF, Factory::UPDATE => $uS]);

$qF = new QueryFilter(TaskWrapper::HASHLIST_ID, $hashlist->getId(), "=");
$uS = new UpdateSet(TaskWrapper::ACCESS_GROUP_ID, $accessGroup->getId());
Factory::getTaskWrapperFactory()->massUpdate([Factory::FILTER => $qF, Factory::UPDATE => $uS]);
Expand Down

0 comments on commit 528b553

Please sign in to comment.