Skip to content

Commit

Permalink
- fix addresscontrol getting an error if the Country doesn't have any…
Browse files Browse the repository at this point in the history
… States defined. Fixes [#587]
  • Loading branch information
MikeDPeterson committed Oct 27, 2014
1 parent 6436ec9 commit e20d07b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rock/Web/UI/Controls/AddressControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,11 @@ protected override void CreateChildControls()
_ddlCountry.SetValue( defaultCountry );

BindStates( defaultCountry );
_ddlState.SetValue( defaultState );
if ( _ddlState.Visible )
{
_ddlState.SetValue( defaultState );
}

_tbState.Text = defaultState;
}

Expand Down

0 comments on commit e20d07b

Please sign in to comment.