Skip to content

Commit

Permalink
#700 make sure this function if reset action
Browse files Browse the repository at this point in the history
  • Loading branch information
schoicsiro committed Oct 6, 2023
1 parent c683d02 commit f7f6f44
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ profileEditor.controller('UserAccessController', function (messageService, util,
}

self.reset = function (form) {
loadOpus(form);
loadOpus(form, true);
};

function loadOpus(form) {
function loadOpus(form, isReset) {
if (!self.opusId) {
return;
}
Expand All @@ -143,7 +143,9 @@ profileEditor.controller('UserAccessController', function (messageService, util,
popupateUserDetails(user);
});

self.privateModeChanged(form);
if (isReset) {
self.privateModeChanged(form);
}

if (form) {
form.$setPristine();
Expand Down

0 comments on commit f7f6f44

Please sign in to comment.