Skip to content
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

Fix theme source model used in widget grid #8062

Merged

Conversation

Zefiryn
Copy link
Contributor

@Zefiryn Zefiryn commented Jan 6, 2017

It may happen that source model for Theme field in Widget grid will not show all installed themes due to injecting theme Collection class and not the factory. This fix injects the factory class and create new collection instance for the source model to use making sure it will always select all available themes from the database (this is the way Magento\Widget\Model\ResourceModel\Widget\Instance\Options\Themes class behaves)

Copy link
Contributor

@antonkril antonkril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While constructor modifications might break some customizations/extensions, this class is deprecated and is not part of public API (not marked as @api), so accepting.

@ishakhsuvarov ishakhsuvarov self-assigned this Jan 31, 2017
@mmansoor-magento mmansoor-magento merged commit a170ca5 into magento:develop Feb 1, 2017
@ishakhsuvarov
Copy link
Contributor

@Zefiryn Proposed changes were merged to the develop branch. Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants