- 🇹🇭Thailand AlfTheCat
This looks like a bug to me.
Steps to reproduce:
- Create a view with product variations
- Unpublish a product variation shown in the view
- Access the view as anonymous user and you will see that the unpublished variation shows up.
In my case, the web store displays variations, not products. So this is a big problem.
- First commit to issue fork.
- Status changed to Needs review
13 days ago 2:28pm 3 September 2024 - 🇩🇪Germany tgauges
I created an issue fork with the existing patch applied. The tests seem fine. I'm currently in the process of testing the code in a project.
- 🇩🇪Germany tgauges
I tested the changes against version 2.37 of the module and it works as expected. One could argue that this is not really a bug and merging this change would amount to a breaking change. In this case this issue lends itself to version 3 of this module, but that is for the maintainer to decide.
- Status changed to Needs work
4 days ago 9:40am 12 September 2024 - 🇩🇪Germany Anybody Porta Westfalica
@tgauges thank you, great work!
Tests are failing and it looks related:
Drupal\Tests\commerce_product\Kernel\ProductVariationStorage 0 passes 1 fails
- Status changed to Needs review
4 days ago 2:31pm 12 September 2024 - 🇩🇪Germany tgauges
I fixed the relevant test but now another unrelated (?) test is failing. Could you take a look at it?