Open gtpt23 opened 11 months ago
Thanks a lot! Can you create a PR with your change so we can merge it?
This is a quick fix. Maybe you should refactor it. It would be worth checking if there is an error with the XML import as well.
We've optimized your fix and merged it into dev-master and 2023.10.x-dev so it will be part of the next release: https://github.com/aimeos/ai-controller-jobs/commit/e06814740224c932fe1e7d8de90119b8a7550624
There's no stock import using XML files and the stock CSV importer doesn't share the problem.
Hello!
There is a bug in this file if you have several stocks and run import several times.
namespace Aimeos\Controller\Common\Product\Import\Csv\Processor\Stock; class Standard
Here is the problem:
if( ( $item = $items->pop() ) === null ) {
The pop() sometimes one, sometimes the other.
This is my improved code:
Best regards
TGergo