From b09e0cad4b6f0d49ea407977ba5f29fb1d4afbf8 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Wed, 30 Oct 2024 09:25:23 -0600 Subject: [PATCH] Fix bug with both org name and suborg --- src/registrar/forms/domain_request_wizard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/registrar/forms/domain_request_wizard.py b/src/registrar/forms/domain_request_wizard.py index 0ec0c6dac..255eff332 100644 --- a/src/registrar/forms/domain_request_wizard.py +++ b/src/registrar/forms/domain_request_wizard.py @@ -152,13 +152,13 @@ class RequestingEntityYesNoForm(BaseYesNoForm): Determines the initial checked state of the form based on the domain_request's attributes. """ - if ( + if self.domain_request.is_suborganization(): + return True + elif ( self.domain_request.portfolio and self.domain_request.organization_name == self.domain_request.portfolio.organization_name ): return False - elif self.domain_request.is_suborganization(): - return True else: return None