You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, actually I don't know what would be the normal behaviour, but sure I didn't expect it to be an error.
To sum up : thanks to recent improvements, I was able to use a select field in title_format... until I change "multiple" attribute of my select field.
Suggestion : instead of throwing an error, perhaps just don't use select field in title if ther is more thant one item selected.
Details
Relevant Bolt Version: 3.3
Reproduction
Bug summary:
title_format can use select field type
but if multiple attribute of this field type is set to true, an error is thrown in backend listing
Specifics:
Here is the error message : Twig_Error_Runtime in Template.php line 447: An exception has been thrown during the rendering of a template ("Warning: strip_tags() expects parameter 1 to be string, array given") in "@bolt/_nav/_secondary-content.twig" at line 28.
Steps to reproduce:
Create a new Contenttype
Add a field with type "select"
Add attribute "multiple: true" to this field
Add attribute "title_format: [selectfieldname] to contenttype
Update database ad go to backend listing of your new contenttype
Expected result:
If multiple is not set to true, listing throws no error and title format uses select field normally
Actual result:
When multiple is set to true, an error is thrown
The text was updated successfully, but these errors were encountered:
trigau
changed the title
[BUG] exception thrown when titl_format uses multiple select field
[BUG] exception thrown when title_format uses multiple select field
Jul 31, 2017
Well it could sound weird. The other option is to display all the values stored in the select field.
I think it could be viewed as a bug, because this is allowed and doesn't work. So either it shouldn't be allowed, or it should work, isn't it ?
GwendolenLynch
changed the title
[BUG] exception thrown when title_format uses multiple select field
Exception thrown when title_format uses multiple select field
Sep 27, 2017
Well, actually I don't know what would be the normal behaviour, but sure I didn't expect it to be an error.
To sum up : thanks to recent improvements, I was able to use a select field in title_format... until I change "multiple" attribute of my select field.
Suggestion : instead of throwing an error, perhaps just don't use select field in title if ther is more thant one item selected.
Details
Reproduction
Twig_Error_Runtime in Template.php line 447: An exception has been thrown during the rendering of a template ("Warning: strip_tags() expects parameter 1 to be string, array given") in "@bolt/_nav/_secondary-content.twig" at line 28.
The text was updated successfully, but these errors were encountered: