Closed nmiyazaki-chapleau closed 4 months ago
Seems fine to me, @mjauvin any thoughts? Related: wintercms/wn-blocks-plugin#34
I'll look into this when I get back from my vacation.
A previous PR I did, #83, added a fix for obtaining data with arrayNames in
MLControl
'sgetLocaleFieldName
method. However, loading data with arrayNames was not implemented. This PR aims to fix this issue by doing a basic implementation within thegetLocaleValue
andgetLocaleSaveValue
methods. It has not been thoroughly tested; the main tests were for an implementation with the Blocks plugin, which uses arrayNames.Any input is welcome.
Does this work when $this->valueFrom
is used as well?
@nmiyazaki-chapleau are you still interested in getting this merged?
A previous PR I did, #83, added a fix for obtaining data with arrayNames in
MLControl
'sgetLocaleFieldName
method. However, loading data with arrayNames was not implemented. This PR aims to fix this issue by doing a basic implementation within thegetLocaleValue
andgetLocaleSaveValue
methods. It has not been thoroughly tested; the main tests were for an implementation with the Blocks plugin, which uses arrayNames. Any input is welcome.Does this work when
$this->valueFrom
is used as well?
As long as arrayName
should be applied to $this->valueFrom
, then yes, as this uses the $key
variable.
@nmiyazaki-chapleau are you still interested in getting this merged?
Yes, thank you and thanks @mjauvin for the emrge. I haven't worked with winter in a bit, but getting these things done helps. Appreciate all the work you've done!
A previous PR I did, #83, added a fix for obtaining data with arrayNames in
MLControl
'sgetLocaleFieldName
method. However, loading data with arrayNames was not implemented. This PR aims to fix this issue by doing a basic implementation within thegetLocaleValue
andgetLocaleSaveValue
methods. It has not been thoroughly tested; the main tests were for an implementation with the Blocks plugin, which uses arrayNames.Any input is welcome.