Commit 08481c7
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)
# Conflicts:
# promotions/spec/system/solidus_promotions/backend/promotions_spec.rb1 parent a17aebc commit 08481c7
File tree
2 files changed
+36
-1
lines changed- promotions
- lib/views/backend/solidus_promotions/admin/calculator_fields
- spec/system/solidus_promotions/backend
2 files changed
+36
-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: 35 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 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
164 | 199 | | |
0 commit comments