This commit is contained in:
zandercymatics 2024-06-03 14:23:15 -06:00
parent c772c71707
commit 8876e47a02
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 2 additions and 2 deletions

View file

@ -240,7 +240,7 @@ class DomainRequestAdminForm(forms.ModelForm):
# If the status is rejected, a rejection reason must exist # If the status is rejected, a rejection reason must exist
if status == DomainRequest.DomainRequestStatus.REJECTED: if status == DomainRequest.DomainRequestStatus.REJECTED:
self._check_for_valid_rejection_reason(rejection_reason) self._check_for_valid_rejection_reason(rejection_reason)
elif status == DomainRequest.DomainRequestStatus.IN_REVIEW: elif status == DomainRequest.DomainRequestStatus.ACTION_NEEDED:
self._check_for_valid_action_needed_reason(action_needed_reason) self._check_for_valid_action_needed_reason(action_needed_reason)
return cleaned_data return cleaned_data

View file

@ -370,7 +370,7 @@ function initializeWidgetOnList(list, parentId) {
// Show/hude the action needed reason // Show/hude the action needed reason
let actionNeededReasonFormGroup = document.querySelector('.field-action_needed_reason'); let actionNeededReasonFormGroup = document.querySelector('.field-action_needed_reason');
showHideFieldsOnStatusChange(actionNeededReasonFormGroup, "action_needed", "hide_action_needed_reason"); showHideFieldsOnStatusChange(actionNeededReasonFormGroup, "action needed", "hide_action_needed_reason");
} }
handleStatusChanges(); handleStatusChanges();