@@ -50,27 +50,19 @@ class EavAttribute
50
50
*/
51
51
protected $ isSwatchExists ;
52
52
53
- /**
54
- * @var \Magento\Framework\Message\ManagerInterface
55
- */
56
- protected $ messageManager ;
57
-
58
53
/**
59
54
* @param \Magento\Swatches\Model\ResourceModel\Swatch\CollectionFactory $collectionFactory
60
55
* @param \Magento\Swatches\Model\SwatchFactory $swatchFactory
61
56
* @param \Magento\Swatches\Helper\Data $swatchHelper
62
- * @param \Magento\Framework\Message\ManagerInterface $messageManager
63
57
*/
64
58
public function __construct (
65
59
\Magento \Swatches \Model \ResourceModel \Swatch \CollectionFactory $ collectionFactory ,
66
60
\Magento \Swatches \Model \SwatchFactory $ swatchFactory ,
67
- \Magento \Swatches \Helper \Data $ swatchHelper ,
68
- \Magento \Framework \Message \ManagerInterface $ messageManager
61
+ \Magento \Swatches \Helper \Data $ swatchHelper
69
62
) {
70
63
$ this ->swatchCollectionFactory = $ collectionFactory ;
71
64
$ this ->swatchFactory = $ swatchFactory ;
72
65
$ this ->swatchHelper = $ swatchHelper ;
73
- $ this ->messageManager = $ messageManager ;
74
66
}
75
67
76
68
/**
@@ -172,7 +164,7 @@ protected function processSwatchOptions(Attribute $attribute)
172
164
173
165
if (!empty ($ optionsArray ) && is_array ($ optionsArray )) {
174
166
$ optionsArray = $ this ->prepareOptionIds ($ optionsArray );
175
- $ attributeSavedOptions = $ attribute ->getSource ()->getAllOptions (false );
167
+ $ attributeSavedOptions = $ attribute ->getSource ()->getAllOptions ();
176
168
$ this ->prepareOptionLinks ($ optionsArray , $ attributeSavedOptions );
177
169
}
178
170
0 commit comments