Skip to content
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

Database table problem #2

Open
JohnnyXiang opened this issue Mar 21, 2014 · 1 comment
Open

Database table problem #2

JohnnyXiang opened this issue Mar 21, 2014 · 1 comment

Comments

@JohnnyXiang
Copy link

Hi Ricardo

Thank you a lot for this great module. This is one issue i found.

In /app/code/community/RicardoMartins/OutofstockLast/Model/Catalog/Layer.php line 22

It's better to replace 'cataloginventory_stock_item' with $collection->getTable('cataloginventory/stock_item') since the table name may have prefix in some case.

Thank you

@r-martins
Copy link
Owner

Yes, good point.
Can you make a pull request?

On Fri, Mar 21, 2014 at 3:35 PM, Johnny Xiang [email protected]:

Hi Ricardo

Thank you a lot for this great module. This is one issue i found.

In
/app/code/community/RicardoMartins/OutofstockLast/Model/Catalog/Layer.php
line 22

It's better to replace 'cataloginventory_stock_item' with
$collection->getTable('cataloginventory/stock_item') since the table name
may have prefix in some case.

Thank you

Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants