Commit 41e67d2
[7.x] Fix
* Fix to setting Order use_shipping_address_for_billing in eloquent
This appears to happen before the casts() method and if the value
property on the html element hydrating this is set to anything other
than "true" this was setting this to bool false.
IIRC the default for HTML checkbox inputs is the string "on" if
checked and "off" if not.
* Add failing test
* Keep the `== 'true'` check
* Also, value should be true when value is "on"
---------
Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>use_shipping_address_for_billing option when using Database Orders (#1213)1 parent aa9c702 commit 41e67d2
File tree
2 files changed
+27
-1
lines changed- src/Orders
- tests/Orders
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
352 | 378 | | |
353 | 379 | | |
354 | 380 | | |
| |||
0 commit comments