Repository navigation
Commit ae943de
Render a blank Add Another Item row after a failed partner request
The Add Another Item template rendered _item_request with object: outside
locals:. With render partial: ... locals: ..., object: isn't passed as a
local, so defined?(object) in the partial was false and fields_for
rendered every submitted row into the template. After a failed submit,
"Add Another Item" then cloned a copy of the first submitted item.
Passing object in locals makes the template hold one blank row again.
Resolves #5611
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d6f8290 commit ae943de
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
332 | 342 | | |
333 | 343 | | |
334 | 344 | | |
| |||
0 commit comments