refs #2913. Circular referente in output fixed #81

Merged
maranda merged 2 commits from hotfix-hw into develop 2026-03-27 10:24:59 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -53,13 +53,13 @@ final class HardwareProfileOutput extends AbstractOutput
)]
public ?string $createdBy = null;
public function __construct(HardwareProfile $hardwareProfile)
public function __construct(HardwareProfile $hardwareProfile, bool $includeClient = true)
{
parent::__construct($hardwareProfile);
$this->description = $hardwareProfile->getDescription();
$this->comments = $hardwareProfile->getComments();
if($hardwareProfile->getClient()) {
if($includeClient && $hardwareProfile->getClient()) {
$this->client = new ClientOutput($hardwareProfile->getClient());
}

View File

@ -189,7 +189,7 @@ final class NetworkSettingsOutput extends AbstractOutput
}
if ($networkSettings->getHardwareProfile()) {
$this->hardwareProfile = new HardwareProfileOutput($networkSettings->getHardwareProfile());
$this->hardwareProfile = new HardwareProfileOutput($networkSettings->getHardwareProfile(), false);
}
if ($networkSettings->getOgLive()) {