registerPalette with config 'palette' => true fails
dsturm opened this issue · comments
Daniel Sturm commented
Hi,
since the config values are mapped into a collection,
[
'palette' => true
]
will be mapped into
[
'palette' => Illuminate\Support\Collection {
#items: array:1 [
0 => true
]
}
]
Therefor
Line 272 in 39bd625
cannot be true.
Brandon commented
Good catch! I'll push a fix later today or tonight after I finish the new ACF Composer release.
Daniel Sturm commented
Thanks :-) First I thought to get the value by $this->config->get('palette')->first()
, but this would break to be able to use a string as the palettes´ file name.