Skip to content

Commit

Permalink
Providing access to the OrganizationTypeSwitcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateiler committed Jan 9, 2020
1 parent 336e2b1 commit 432bc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cp/controllers/view/OrganizationsController.php
Expand Up @@ -130,7 +130,7 @@ public function actionUpsert($identifier = null, OrganizationElement $organizati

// Allow switching between types
Craft::$app->getView()->registerAssetBundle(OrganizationAsset::class);
Craft::$app->getView()->registerJs('new Craft.OrganizationTypeSwitcher();');
Craft::$app->getView()->registerJs('window.OrganizationTypeSwitcher = new Craft.OrganizationTypeSwitcher();');

// The user select input criteria
$variables['elementType'] = UserElement::class;
Expand Down

0 comments on commit 432bc62

Please sign in to comment.