Currently if we create a site settings with multiple boolean fields A and B. The site settings loader returns both the values only if the both the values are set to true. We are unable to fetch the value of the filed if its value is set to false.
Site settings array if only one value is set to true.
Array
(
[site_settings] => 1
)
Site settings array if both value are set.
Array
(
[site_settings] => Array
(
[field_A] => 1
[field_B] => 1
)
)
Idea is to get an output as if field B is not set
Array
(
[site_settings] => Array
(
[field_A] => 1
[field_B] => 0
)
)| Comment | File | Size | Author |
|---|---|---|---|
| #9 | interdiff-3092887-7-9.txt | 760 bytes | scott_euser |
| #9 | 3092887-9.patch | 9.61 KB | scott_euser |
| #7 | 3092887-7.patch | 8.79 KB | scott_euser |
| #7 | interdiff-3092887-5-7.txt | 670 bytes | scott_euser |
| #5 | interdiff-3092887-3-5.txt | 6.04 KB | scott_euser |
Comments
Comment #2
pritishkumar commentedComment #3
pritishkumar commentedThe patch allows boolean field values to be available in above stated format.
Comment #4
scott_euser commentedThanks! Setting to needs review so tests run.
Comment #5
scott_euser commentedThanks, this looks good to me - adding test coverage.
Comment #7
scott_euser commentedUpdated test with new fieldset.
Comment #9
scott_euser commentedComment #11
scott_euser commentedThanks!