mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-30 02:52:22 +08:00
Fix feedback handling after legacy install
- Pass back feedback from legacy
This commit is contained in:
parent
a2c7628722
commit
e6b0e00d50
1 changed files with 3 additions and 9 deletions
|
@ -81,17 +81,11 @@ class RunLegacyInstall implements InstallStepInterface
|
||||||
{
|
{
|
||||||
$result = $this->handler->installLegacy();
|
$result = $this->handler->installLegacy();
|
||||||
|
|
||||||
$feedback = new Feedback();
|
if ($result->isSuccess() === false) {
|
||||||
$feedback->setSuccess(true);
|
$result->setStatusCode(InstallStatus::FAILED);
|
||||||
$feedback->setMessages(['Legacy install successful']);
|
|
||||||
|
|
||||||
if ($result === false) {
|
|
||||||
$feedback->setSuccess(false);
|
|
||||||
$feedback->setMessages(['Legacy install failed']);
|
|
||||||
$feedback->setStatusCode(InstallStatus::FAILED);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $feedback;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue