Commit 3c6d944
Default first_name/last_name to empty string in profile import
Exporters omit name fields from profiles when they are blank, so
prof[:first_name] and prof[:last_name] can be nil. Passing nil directly
to assign_form_response_attributes triggers a NOT NULL violation on the
user_con_profiles table. .to_s converts nil to "" safely.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent baf8ba5 commit 3c6d944
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
| 286 | + | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
0 commit comments