From 877db1bab3a2f5944b41108847fa8b01f0a72ca7 Mon Sep 17 00:00:00 2001 From: arshad Date: Mon, 10 Feb 2020 09:53:27 +0400 Subject: [PATCH] Update modules/apigee_edge_teams/src/Entity/Form/TeamForm.php --- modules/apigee_edge_teams/src/Entity/Form/TeamForm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php b/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php index de06f6a5..c03a4b8f 100644 --- a/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php +++ b/modules/apigee_edge_teams/src/Entity/Form/TeamForm.php @@ -101,7 +101,9 @@ public function buildEntity(array $form, FormStateInterface $form_state) { /** @var \Drupal\apigee_edge_teams\Entity\TeamInterface $team */ $team = parent::buildEntity($form, $form_state); - // Set the required attributes for the team. + // ADMIN_EMAIL_ATTRIBUTE is a required field for monetization. + // We add to any team to make sure team creation works for mint orgs even + // if they do not enable the m10n teams module. $team->setAttribute(static::ADMIN_EMAIL_ATTRIBUTE, $this->currentUser->getEmail()); return $team;