We will be off on April 7th (Monday) for public holiday in our country

Commit cc3cd0d0 authored by Ermanno Baschiera's avatar Ermanno Baschiera Committed by GitHub

avoid setting order state to NULL (#778)

This may happen when setting a status that is not default for a state.
Fixes Adyen/adyen-magento2#384
Co-authored-by: default avatarAttila Kiss <42297201+cyattilakiss@users.noreply.github.com>
parent 02fbadca
......@@ -1945,7 +1945,6 @@ class Cron
{
$statusObject = $this->_orderStatusCollection->create()
->addFieldToFilter('main_table.status', $status)
->addFieldToFilter('state_table.is_default', true)
->joinStates()
->getFirstItem();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment