From bc3cc0a94310f0b5110cc50b3b3634040954338e Mon Sep 17 00:00:00 2001 From: Axel Stohn Date: Fri, 24 Jun 2022 13:23:36 -0700 Subject: [PATCH] email search for adding new members --- Controller/GrouperGroupsController.php | 3 ++- View/Elements/Components/subscriberList.ctp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 03b4f85..2cf39b0 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -303,7 +303,8 @@ public function findSubscriber() } foreach($idArr as $i) { if($i['type'] == $pickerIdentifierType) { - $id = mb_strimwidth($i['identifier'], 0, 30, '...'); + //$id = mb_strimwidth($i['identifier'], 0, 30, '...'); + $id = $i['identifier']; break; } } diff --git a/View/Elements/Components/subscriberList.ctp b/View/Elements/Components/subscriberList.ctp index ca05222..199d218 100644 --- a/View/Elements/Components/subscriberList.ctp +++ b/View/Elements/Components/subscriberList.ctp @@ -105,7 +105,7 @@ select: function(event, ui) { // $("#group-add-member").hide(); // $("#group-add-member-name").text(ui.item.label).show(); - $("#addUser").val(ui.item.email); + $("#addUser").val(ui.item.identifier); // $("#CoGroupMemberCoPersonLabel").val(ui.item.label); $("#addUserbutton").prop('disabled', false).focus(); $("#group-add-member-clear-button").show();