Skip to content

Commit

Permalink
Fix theme source model used in widget grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Zefiryn committed Jan 6, 2017
1 parent 2d6bb43 commit a170ca5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class ThemeId implements \Magento\Framework\Option\ArrayInterface
protected $_resourceModel;

/**
* @param \Magento\Theme\Model\ResourceModel\Theme\Collection $widgetResourceModel
* @param \Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $widgetResourceModel
*/
public function __construct(\Magento\Theme\Model\ResourceModel\Theme\Collection $widgetResourceModel)
public function __construct(\Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $widgetResourceModel)
{
$this->_resourceModel = $widgetResourceModel;
$this->_resourceModel = $widgetResourceModel->create();
}

/**
Expand Down

0 comments on commit a170ca5

Please sign in to comment.