Skip to content

Commit

Permalink
Merge pull request #2494 from phili67/phili67-personview-add-group-re…
Browse files Browse the repository at this point in the history
…load-page-wth-group

PersonView.js : add a person to group reload page to group
  • Loading branch information
phili67 authored Sep 29, 2023
2 parents 3588773 + dd50242 commit 5e174e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skin/js/people/PersonView.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ $(document).ready(function () {
var GroupID = $(this).data("groupid");
window.CRM.groups.promptSelection({Type:window.CRM.groups.selectTypes.Role,GroupID:GroupID},function(selection){
window.CRM.groups.addPerson(GroupID,window.CRM.currentPersonID,selection.RoleID, function(){
location.reload();
window.location.href = window.CRM.root + '/v2/people/person/view/' + window.CRM.currentPersonID + '/Group';
})
});
});
Expand Down

0 comments on commit 5e174e6

Please sign in to comment.