-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\Magento\CatalogInventory\Model\Stock\Status->getStockId() to return correct value #5145
\Magento\CatalogInventory\Model\Stock\Status->getStockId() to return correct value #5145
Conversation
Hi @fe-lix- We've created MAGETWO-58941 internal ticket regarding this. |
@alena-marchenko @mmansoorebay was this merge included in 2.1.2? |
@alena-marchenko @mmansoorebay @Ctucker9233 This issue is still actual for composer based installation at least. I suppose
This zip contains wrong version:
|
Magento-CE-2_1_3_tar_bz2-2016-12-13-09-10-13.tar.bz2 also contains wrong version of the "\Magento\CatalogInventory\Model\Stock\Status::getStockId" |
@vkublytskyi, please take into attention this issue. @alena-marchenko @mmansoorebay have no activity on github in the last months. |
@MomotenkoNatalia, please take a look at this issue. |
Version 2.1.4 contains the same bug. Is it a feature? |
The ticket MAGETWO-58941 is closed and looks like that this fix is targeted for version 2.2.0. |
Good news, @fe-lix- ! Thanks. I feared that this fix is targeted for M3. |
@fe-lix- Do you have commit numbers handy for those who can't wait for 2.2. ? |
@Ctucker9233 it's in the branch |
Commit a1a3c72 was on Sep 26, 2016, the last changes for Version Magento 2.1.4 was appeared at Feb 7, 2017 and this version has the bug. |
@flancer64 the code from develop branch will be released in 2.2.0. |
Thanks for the answer, @okorshenko. Does it mean that this fix will never be included in 2.1.x releases? |
@flancer64 I will discuss this issue with our Product Owners to include it to some patch release. |
Congrats, guys! It's fixed in 2.1.6. |
Why congrats? This has been fixed almost a year ago. :/ |
@adragus-inviqa , why congrats? Try to download "Magento-CE-2.1.5", for example, from https://magento.com/tech-resources/download ("Release Archive" tab), extract it and open file public function getStockId()
{
return $this->getData(self::KEY_WEBSITE_ID);
} Do the same with version 2.1.6 and you will see: public function getStockId()
{
return $this->getData(self::KEY_STOCK_ID);
} So, congrats! |
[TSG-CSL3] For 2.4 (pr4)
\Magento\CatalogInventory\Model\Stock\Status->getStockId() is returning the website id instead of the stock id.