refs #2913. Circular referente in output fixed
parent
9dcc17fabc
commit
750e42cc9d
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue