Skip to content

Commit

Permalink
Merge pull request #151 from Zae/patch-2
Browse files Browse the repository at this point in the history
Fix assignUserGroup permission serialization bug
  • Loading branch information
bvangennep authored Jul 13, 2018
2 parents ae47f3d + 91690e1 commit b7b85f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 3.8.9 ###
- Fixed assignUserGroup permission serialization bug

### 3.8.8 ###
- Added ability to exclude datatypes on import (thanks @Zae)

Expand Down
4 changes: 4 additions & 0 deletions src/Services/Sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public function getSource($fieldType, $source, $indexFrom, $indexTo)
break;
case 'editLocale':
return $source;
case 'assignUserGroup':
$service = Craft::app()->userGroups;
$method = 'getGroupBy';
break;
}

if (isset($service) && isset($method) && isset($sourceFrom)) {
Expand Down

0 comments on commit b7b85f7

Please sign in to comment.