-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
string
filter instead of record
for location_type
`active_interaction` doesn't coerce an empty string value to the default value on `record` filters[1]. This causes the form to break on any form where `location_type` is optional (eg CommunityResources#create). We hadn't run into this on the Ask|Offer form because we only show the location_type input once the user provides an address, and then rely on the browser to enforce that it's populated. [1] AaronLasseigne/active_interaction#503
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ | |
before do | ||
params[:location_attributes] = { | ||
street_address: '', | ||
location_type: '', | ||
} | ||
end | ||
|
||
|