- Issue created by @driverok
- Merge request !54Issue #3504053: Logic issue with updateStatusOverride callback → (Open) created by driverok
- 🇵🇱Poland driverok
To reproduce the issue just try importing split configuration via UI
updateStatusOverride function, located in config_split/src/Form/ConfigImportFormTrait.php has some logic issue.
It is being called only once from the launchImport function
Below are the code:
if (!$override !== NULL) {
$batch_builder->addOperation([$this, 'updateStatusOverride'], [$this->getSplit()->getName(), $override]);
}
This code will go the updateStatusOverride callback only in case of $override === NULL.
But the callback itself expects a string. Having NULL as a parameter leads to an error.
So basically, I think this is just a small mistyping issue, and instead of
if (!$override !== NULL) {
should be
if ($override !== NULL) {
Active
2.0
Code
To reproduce the issue just try importing split configuration via UI