dgrigg / craft-migration-assistant

Migration Manager for Craft CMS
Other
27 stars 10 forks source link

Default user group by UID #7

Closed tim-thaler closed 5 years ago

tim-thaler commented 5 years ago

Hey guys, if I select a default user group under settings->user settings there is an error with exporting user groups. The system user settings returns now a uid for the default group but the function call is done with getGroupById()

Craft Version 3.1.26

src/services/UserGroups.php: 60 - OLD if ($newGroup['settings']['defaultGroup'] != null) { $group = Craft::$app->userGroups->getGroupById($newGroup['settings']['defaultGroup']); $newGroup['settings']['defaultGroup'] = $group->handle; }

NEEDS TO BE if ($newGroup['settings']['defaultGroup'] != null) { $group = Craft::$app->userGroups->getGroupByUid($newGroup['settings']['defaultGroup']); $newGroup['settings']['defaultGroup'] = $group->handle; }

dgrigg commented 5 years ago

fixed in latest release