Preconditions (*)
- Magento MSI
- At least 2 sources
- Create a new stock with 1 or more initial sources.
Steps to reproduce (*)
- On page load there is a javascript error:
Uncaught TypeError: Unable to process binding "click: function(){return $data.deleteRecord.bind($data,$record().index,$record().recordId) }" Message: Cannot read property 'bind' of undefined
- Proceed to the admin to edit stock, click on assign sources button.
- Select any number of Stock Source to add
- Click done, there will be a javascript error:
Uncaught TypeError: Unable to process binding "if: function(){return elem.template }" Message: Unable to process binding "template: function(){return elem.template }" Message: Unable to process binding "click: function(){return $data.deleteRecord.bind($data,$record().index,$record().recordId) }" Message: Cannot read property 'bind' of undefined
The loading wheel never stop if more than 1 source is selected in step 3.
- Click Save to save Stock. The /inventory/stock/save controller will return fatal error:
Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Inventory\Model\StockSourceLink::setPriority() must be of the type integer or null, string given
Expected result (*)
- Admin user should be able to assign more sources to stock
Actual result (*)
- JavaScript error prevented adding / sorting and saving stock with newly assigned source(s)
Preconditions (*)
Steps to reproduce (*)
Uncaught TypeError: Unable to process binding "click: function(){return $data.deleteRecord.bind($data,$record().index,$record().recordId) }" Message: Cannot read property 'bind' of undefinedUncaught TypeError: Unable to process binding "if: function(){return elem.template }" Message: Unable to process binding "template: function(){return elem.template }" Message: Unable to process binding "click: function(){return $data.deleteRecord.bind($data,$record().index,$record().recordId) }" Message: Cannot read property 'bind' of undefinedThe loading wheel never stop if more than 1 source is selected in step 3.
Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Inventory\Model\StockSourceLink::setPriority() must be of the type integer or null, string givenExpected result (*)
Actual result (*)