Commit 63041e5
committed
Ensure all school move attributes are reset
This fixes an issue where if a patient already had a school move, when
we set the `school`, we don't clear our the `team_id` and
`home_educated` columns, leading to a validation error.
I thought about adding tests for this, but this code is being removed in
a follow up PR
(#6373)
so I thought it was fine to leave it without. There has been a Sentry
issue raised for this, so we can check to see that those stop.
Sentry-Issue: 73615831891 parent 5096c0f commit 63041e5
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | | - | |
295 | | - | |
| 297 | + | |
| 298 | + | |
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
| |||
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
305 | | - | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
0 commit comments