- @oknate opened merge request.
- ๐บ๐ธUnited States oknate Greater New York City Area
I ran into this today.
I think we shouldn't increment if we can't load the language:
$configurable_language = ConfigurableLanguage::load($language->getId()); if ($configurable_language === null) { continue; } // Update system languages weight. $max_weight++; $configurable_language ->setWeight($max_weight) ->save();