Closed dereuromark closed 1 year ago
Your stack trace has 1st error at 951 which is a blank line for 5.0.0 release https://github.com/FriendsOfCake/bootstrap-ui/blob/5.0.0/src/View/Helper/FormHelper.php#L951. So I don't think you have the latest release installed.
5.0.0 as latest There were no more commits
I know what it is...
$options = $this->_spacingOptions($fieldName, $options);
// NOW it gets nuked:
$options = $this->_containerOptions($fieldName, $options);
$options = $this->_feedbackStyleOptions($fieldName, $options);
in _containerOptions():
if (
$this->_align !== static::ALIGN_INLINE &&
isset($options['type']) &&
$options['spacing'] !== false
) {
$classes = $options['spacing'] ?? [];
$options = (array)($options['container'] ?? []);
$options['container'] = $this->injectClasses($classes, $options);
}
You can see that in this case $options gets set to only container, which only contains templates, nothing else Thus all the warnings now.
But it did get fixed on master in the meantime, so closing.
This is a (multiple allowed):
5.x and latest bootstrap-ui plugin code (5.0.0)
What you did
Adding helper normally in AppView
Expected Behavior
Normally working
Actual Behavior
in every form