From 0ea94366e26e14adaa0ef8d307ab518ee15c9682 Mon Sep 17 00:00:00 2001 From: axman Date: Thu, 8 Apr 2021 15:44:13 -0700 Subject: [PATCH] fixed error on Sympa Groups --- Lib/GrouperApiAccess.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/GrouperApiAccess.php b/Lib/GrouperApiAccess.php index fbb6584..69689c2 100644 --- a/Lib/GrouperApiAccess.php +++ b/Lib/GrouperApiAccess.php @@ -382,6 +382,12 @@ public function createGroupWithTemplate(array $queryData) { $data = $queryData['data']; $userId = $queryData['userId']; + //need to take out SympaDomain if domain not being created. + if ($data['gsh_input_isSympa'] == 'false') { + unset($data['gsh_input_sympaDomain']); + unset($data['gsh_input_isSympaModerated']); + } + //Build request logic $inputFields = array(); foreach($data as $key => $value) {