-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Itunes categories with same main category are overwritten #41
Comments
The usage is wrong because the method sets all categories for the feed Use the following: $feed->setItunesCategories(['Arts' => ['Food', 'Visual Arts']]); |
But why does it work with categories with a different main category?
Adds all 3 categories to the feed (as expected). Right now it partly works like an |
@podcasthosting
And this behaviour is wrong. But at this point, we cannot change the current behaviour because this could break the current running applications. |
Thank you for clarification! |
@podcasthosting |
This actually also does not work:
The result is:
but should be:
So this is completely broken and a pretty severe bug (from our customers` point of view). |
Can you provide a reference / documentation for this? Thanks in advance! 👍 |
@podcasthosting |
@podcasthosting |
Bug Report
Summary
When setting multiple iTunes categories and two or more having the same "main" category the latter are overwritten.
Current behavior
only
ends up being in the rendered output
How to reproduce
Add two categories with the same main category.
Expected behavior
I´d expect both entries being shown in the feed.
The culprit seems to be
vendor/laminas/laminas-feed/src/Writer/Extension/ITunes/Feed.php
somewhere within method setItunesCategories()
The text was updated successfully, but these errors were encountered: