You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the admin panel, when opening the page at reports->products->"low stock", we get an error page. The report says (among other things):
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'qty' in where clause is ambiguous
A quick fix for this is to go to the class Etailer_Backorders_Model_Observer_Adminhtml and comment out the lines in the function joinFieldsToCollection. I've seen other solutions to this problem where they define a 'filter_index' when joining, but I'm not sure how to implement that here.
The text was updated successfully, but these errors were encountered:
@rjocoleman no problem. I'll try to find a better solution but I thought it was important to make a note of this in case others came across the same problem.
Problem is in /app/code/core/Mage/Reports/Model/Resource/Product/Lowstock/Collection.php
Line 239
$this->getSelect()->where('qty < ?', $notifyStockExpr);
In the admin panel, when opening the page at reports->products->"low stock", we get an error page. The report says (among other things):
A quick fix for this is to go to the class Etailer_Backorders_Model_Observer_Adminhtml and comment out the lines in the function joinFieldsToCollection. I've seen other solutions to this problem where they define a 'filter_index' when joining, but I'm not sure how to implement that here.
The text was updated successfully, but these errors were encountered: