Skip to content

Commit

Permalink
Merge pull request magento#5262 from magento-obsessive-owls/PR-2.4
Browse files Browse the repository at this point in the history
[Owls] Bugfix
  • Loading branch information
omiroshnichenko authored Feb 5, 2020
2 parents 606c3e8 + aa7a519 commit 7322e87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/CatalogInventory/Model/Source/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getAllOptions()
public function addValueSortToCollection($collection, $dir = \Magento\Framework\Data\Collection::SORT_ORDER_DESC)
{
$collection->getSelect()->joinLeft(
['stock_item_table' => 'cataloginventory_stock_item'],
['stock_item_table' => $collection->getTable('cataloginventory_stock_item')],
"e.entity_id=stock_item_table.product_id",
[]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function testAddValueSortToCollection()
$selectMock = $this->createMock(\Magento\Framework\DB\Select::class);
$collectionMock = $this->createMock(\Magento\Eav\Model\Entity\Collection\AbstractCollection::class);
$collectionMock->expects($this->atLeastOnce())->method('getSelect')->willReturn($selectMock);
$collectionMock->expects($this->atLeastOnce())->method('getTable')->willReturn('cataloginventory_stock_item');

$selectMock->expects($this->once())
->method('joinLeft')
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Ui/view/base/web/js/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ define([
* @param {String} title
*/
setTitle: function (title) {
var $title = $(this.options.modalTitle),
var $title = this.modal.find(this.options.modalTitle),
$subTitle = this.modal.find(this.options.modalSubTitle);

$title.text(title);
Expand Down

0 comments on commit 7322e87

Please sign in to comment.