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
Tested with latest Master. But the problem seems to be there for ages.
The same, I suppose, can be found in other modules?
To Reproduce:
Disable one product, e.g. IPhone 6
Go to Featured module, and set limit to 1 (can be any number, less then total "enabled" products added to Featured module),
Remove all products from Featured.
Add at first IPhone 6 (which is disabled) and then any other "enabled" product.
Save.
Go to homepage (or anywhere, where you have added Featured module display):
There will be no products shown, because we have LIMIT 1, but the first product returned is "Disabled", and result array is sliced AFTER limited return.
Tested with latest Master. But the problem seems to be there for ages.
The same, I suppose, can be found in other modules?
To Reproduce:
IPhone 6
Go to Featured module, and set limit to
1
(can be any number, less then total "enabled" products added to Featured module),Remove all products from Featured.
Add at first
IPhone 6
(which is disabled) and then any other "enabled" product.Save.
Go to homepage (or anywhere, where you have added Featured module display):
There will be no products shown, because we have
LIMIT 1
, but the first product returned is "Disabled", and result array is sliced AFTER limited return.https://github.com/opencart/opencart/blob/master/upload/catalog/controller/extension/module/featured.php#L17-L22
The text was updated successfully, but these errors were encountered: