Skip to content

Commit

Permalink
0.1.3: #18
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 22, 2019
1 parent 6ed3c3a commit fcda933
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 13 additions & 1 deletion Plugin/Iksanika/Stockmanage/Block/Adminhtml/Product/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace PPCs\Core\Plugin\Iksanika\Stockmanage\Block\Adminhtml\Product;
use Iksanika\Stockmanage\Block\Adminhtml\Product\Grid as Sb;
use Iksanika\Stockmanage\Block\Widget\Grid\Column\Renderer\Number;
use Magento\Framework\Event\Observer as Ob;
use Magento\Catalog\Model\ResourceModel\Product\Collection as C;
// 2019-10-22
final class Grid {
/**
Expand Down Expand Up @@ -52,4 +52,16 @@ function aroundAddColumn(Sb $sb, \Closure $f, $id, $data) {
$f($id, $data);
}
}

/**
* 2019-10-23
* "The «Brand» column of the Iksanika's Stock Inventory Manager's grid
* does not show values for some products on the live website":
* https://github.com/p-pcs/core/issues/18
* @see \Iksanika\Stockmanage\Block\Adminhtml\Product\Grid::_prepareCollection()
* @see \Magento\Backend\Block\Widget\Grid\Extended::setCollection()
* @param Sb $sb
* @param C $c
*/
function beforeSetCollection(Sb $sb, C $c) {$c->addAttributeToSelect('brand');}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p-pcs/core"
,"version": "0.1.2"
,"version": "0.1.3"
,"description": "A custom module for performance-pcs.com (Magento 2)"
,"type": "magento2-module"
,"homepage": "https://github.com/p-pcs/core"
Expand Down
4 changes: 3 additions & 1 deletion etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ https://github.com/p-pcs/core/issues/13
3) "Remove the «Type» column from the Iksanika's Stock Inventory Manager's grid":
https://github.com/p-pcs/core/issues/14
4) "Make the «Cost» and «Price» columns of the the Iksanika's Stock Inventory Manager's grid editable":
https://github.com/p-pcs/core/issues/17 -->
https://github.com/p-pcs/core/issues/17
5) "The «Brand» column of the Iksanika's Stock Inventory Manager's grid
does not show values for some products on the live website": https://github.com/p-pcs/core/issues/18 -->
<type name='Iksanika\Stockmanage\Block\Adminhtml\Product\Grid'>
<plugin
name='PPCs\Core\Plugin\Iksanika\Stockmanage\Block\Adminhtml\Product\Grid'
Expand Down

0 comments on commit fcda933

Please sign in to comment.