-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array to string conversion in the product picker #2340
Comments
see #2341 |
leofeyer
added a commit
to contao/contao
that referenced
this issue
Jul 28, 2023
Description ----------- I have fixed this issue in Isotope core previously in isotope/core#2324, but now realized this is actually a Contao bug to me. This issue resurfaced in isotope/core#2340 because of the new `DataContainer::generateRecordLabel`, which overrides the default Isotope label fix. Commits ------- 800d1a4 Recursively implode fields when generating record labels 90348f9 Use a recursive iterator to implode the array Co-authored-by: leofeyer <1192057+leofeyer@users.noreply.github.com>
leofeyer
added a commit
to contao/core-bundle
that referenced
this issue
Jul 28, 2023
Description ----------- I have fixed this issue in Isotope core previously in isotope/core#2324, but now realized this is actually a Contao bug to me. This issue resurfaced in isotope/core#2340 because of the new `DataContainer::generateRecordLabel`, which overrides the default Isotope label fix. Commits ------- 800d1a42 Recursively implode fields when generating record labels 90348f9a Use a recursive iterator to implode the array Co-authored-by: leofeyer <1192057+leofeyer@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Contao 4.13.6, Isotope 2.8.5, PHP 8.1
Exactly the same problem as in #2324. It happens in backend when you go to the related products of a product, and then edit the category.
(irrelevant product data has been cut out)
This happens when Contao tries to render the preview of the picker widget, i.e. this part:
This has been already fixed for product list in 175a07f, but is not applied here, because rendering labels has been refactored into a separate method in Contao 4.13 (
DataContainer::generateRecordLabel()
), and the picker widget calls that method directly, which in this case resolves to the parent class, notDC_ProductData
.You cannot check it in the demo because it uses Isotope 2.7 (no picker widget) and Contao 4.9 (no separate method).I'll provide a PR.
The text was updated successfully, but these errors were encountered: