Commit 3ef805b
committed
Fix Calculator Default Fields
For all calculators except the `PercentWithCap` one we have a custom
`calculator_fields` partial. PercentWithCap does not need that - it can
fall back to the default calculator fields partial. However, that
partial does not render currently, because `name` is a symbol that does
not respond to `humanize`.
Adds a system spec as well.
(cherry picked from commit 7e1de2d)1 parent a17aebc commit 3ef805b
File tree
2 files changed
+12
-1
lines changed- promotions
- lib/views/backend/solidus_promotions/admin/calculator_fields
- spec/system/solidus_promotions/backend
2 files changed
+12
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
164 | 175 | | |
0 commit comments