Skip to content

Commit

Permalink
AJAX cxhanges needed by Ryan
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed May 17, 2023
1 parent 84ac697 commit 1b76908
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,6 @@ public function groupMemberApi()

$finalData = $this->breakoutGroups($data);

$groupmemberships = $finalData['adHocGroups'];
$wgmemberships = $finalData['workingGroups'];

} catch (Exception $e) {
CakeLog::write('error', __METHOD__ . ' Search: ' . var_export($e->getMessage(), true));
$this->response->type('json');
Expand All @@ -549,9 +546,6 @@ public function groupMemberApi()

$finalData = $this->breakoutGroups($data);

$groupmemberships = $finalData['adHocGroups'];
$wgmemberships = $finalData['workingGroups'];

} catch (Exception $e) {
CakeLog::write('error', __METHOD__ . ': ' . var_export($e->getMessage(), true));
$this->response->type('json');
Expand All @@ -565,10 +559,8 @@ public function groupMemberApi()
}
}

$this->set(compact('groupmemberships'));
$this->set(compact('wgmemberships'));
$this->set('_serialize', 'groupmemberships');
$this->set('_serialize', 'wgmemberships');
$this->set(compact('finalData'));
$this->set('_serialize', 'finalData');
}

/**
Expand Down Expand Up @@ -877,8 +869,8 @@ private function breakoutGroups(array $recordSet, $type = 'basic')
}

return array(
'adHocGroups' => $notWGData,
'workingGroups' => $wgData
'adhoc' => $notWGData,
'working' => $wgData
);
}

Expand Down

0 comments on commit 1b76908

Please sign in to comment.