File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Ui/view/base/web/js/modal Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function getAllOptions()
43
43
public function addValueSortToCollection ($ collection , $ dir = \Magento \Framework \Data \Collection::SORT_ORDER_DESC )
44
44
{
45
45
$ collection ->getSelect ()->joinLeft (
46
- ['stock_item_table ' => 'cataloginventory_stock_item ' ],
46
+ ['stock_item_table ' => $ collection -> getTable ( 'cataloginventory_stock_item ' ) ],
47
47
"e.entity_id=stock_item_table.product_id " ,
48
48
[]
49
49
);
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public function testAddValueSortToCollection()
25
25
$ selectMock = $ this ->createMock (\Magento \Framework \DB \Select::class);
26
26
$ collectionMock = $ this ->createMock (\Magento \Eav \Model \Entity \Collection \AbstractCollection::class);
27
27
$ collectionMock ->expects ($ this ->atLeastOnce ())->method ('getSelect ' )->willReturn ($ selectMock );
28
+ $ collectionMock ->expects ($ this ->atLeastOnce ())->method ('getTable ' )->willReturn ('cataloginventory_stock_item ' );
28
29
29
30
$ selectMock ->expects ($ this ->once ())
30
31
->method ('joinLeft ' )
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ define([
191
191
* @param {String } title
192
192
*/
193
193
setTitle : function ( title ) {
194
- var $title = $ ( this . options . modalTitle ) ,
194
+ var $title = this . modal . find ( this . options . modalTitle ) ,
195
195
$subTitle = this . modal . find ( this . options . modalSubTitle ) ;
196
196
197
197
$title . text ( title ) ;
You can’t perform that action at this time.
0 commit comments