Skip to content

Commit

Permalink
Merge pull request #858 from CruGlobal/hs-1211838-edit-incomplete-reg…
Browse files Browse the repository at this point in the history
…istration

[HS-1211838] Allow editing incomplete registrations
  • Loading branch information
canac authored Aug 26, 2024
2 parents 6b5b8a6 + a92eba4 commit 8857ffd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/scripts/controllers/editRegistrationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ angular
) {
$scope.conference = angular.copy(conference);
$scope.registration = angular.copy(registration);
$scope.adminEditing = true; // Used in emailQuestion.html to prevent converting invalid email addresses to undefined
$scope.adminEditRegistrant = _.find($scope.registration.registrants, {
id: registrantId,
});
Expand Down
2 changes: 1 addition & 1 deletion app/views/blocks/emailQuestion.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="form-control"
placeholder="[email protected]"
ng-model="answer.value"
ng-model-options="{ debounce: 1000 }"
ng-model-options="{ allowInvalid: adminEditing, debounce: 1000 }"
ng-required="block.required"
ng-disabled="editBlock || lockedStaffProfileBlock"
/>
Expand Down
7 changes: 1 addition & 6 deletions app/views/modals/editRegistration.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ <h4 ng-show="saving">
>
Save &amp; Set as Completed
</button>
<button
ng-click="submit()"
ng-disabled="!editRegistrationForm.$valid"
class="btn btn-primary"
translate
>
<button ng-click="submit()" class="btn btn-primary" translate>
Save
</button>
</div>
Expand Down

0 comments on commit 8857ffd

Please sign in to comment.